summarylogtreecommitdiffstats
path: root/rpath.patch
blob: b5ce59f57422d65c079bec20a38e6ebcd09994c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/src/meshlab/meshlab.pro b/src/meshlab/meshlab.pro
index cae4cb4f..6b1e3466 100644
--- a/src/meshlab/meshlab.pro
+++ b/src/meshlab/meshlab.pro
@@ -155,7 +155,7 @@ win32-g++:LIBS        	+= -L../external/lib/win32-gcc -ljhead -L../distrib -lcom
 #}
 
 linux:LIBS += -L$$PWD/../external/lib/linux-g++ -ljhead -L../distrib -lcommon -lGLU
-linux:QMAKE_RPATHDIR += ../distrib
+linux:QMAKE_LFLAGS += -Wl,-rpath,/usr/lib/meshlab
 
 # uncomment in your local copy only in emergency cases.
 # We should never be too permissive
diff --git a/src/meshlabserver/meshlabserver.pro b/src/meshlabserver/meshlabserver.pro
index e97962a1..0436a55c 100644
--- a/src/meshlabserver/meshlabserver.pro
+++ b/src/meshlabserver/meshlabserver.pro
@@ -30,7 +30,7 @@ win32-msvc2012:  LIBS += -L../distrib -lcommon -lopengl32 -lGLU32
 win32-msvc2015:  LIBS += -L../distrib -lcommon -lopengl32 -lGLU32
 win32-g++:  LIBS += -L../distrib -lcommon      
 linux:  LIBS += -L../distrib -lcommon
-linux:QMAKE_RPATHDIR += ../distrib
+linux:QMAKE_LFLAGS += -Wl,-rpath,/usr/lib/meshlab
 #CONFIG (release,debug | release) {
 #	win32-msvc2005:release:  LIBS += -L../common/release -lcommon
 #	win32-msvc2008:release:  LIBS += -L../common/release -lcommon