diff --git a/src/app/tape/tape.pro b/src/app/tape/tape.pro index 61484bc3a..ce79f6976 100644 --- a/src/app/tape/tape.pro +++ b/src/app/tape/tape.pro @@ -165,6 +165,12 @@ CONFIG(debug, debug|release){ # Path to recource file. win32:RC_FILE = share/resources/tape.rc +unix:!macx{ + # suppress the default RPATH + QMAKE_LFLAGS_RPATH = + QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\' -Wl,-rpath,$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -Wl,-rpath,$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}" +} + # When the GNU linker sees a library, it discards all symbols that it doesn't need. # Dependent library go first. diff --git a/src/app/valentina/valentina.pro b/src/app/valentina/valentina.pro index 6e3c5dff8..1a2c031f7 100644 --- a/src/app/valentina/valentina.pro +++ b/src/app/valentina/valentina.pro @@ -2086,6 +2086,12 @@ win32 { copyToDestdir($$pdftops_path, $$shell_path($${OUT_PWD}/$$DESTDIR)) } +unix:!macx{ + # suppress the default RPATH + QMAKE_LFLAGS_RPATH = + QMAKE_LFLAGS += "-Wl,-rpath,\'\$$ORIGIN\' -Wl,-rpath,$${OUT_PWD}/../../libs/qmuparser/$${DESTDIR} -Wl,-rpath,$${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}" +} + # When the GNU linker sees a library, it discards all symbols that it doesn't need. # Dependent library go first.