[PATCH] Add rpath to libdivecomputer

Anton Lundin glance at acc.umu.se
Wed Oct 9 05:34:11 UTC 2013


When compiling against libdivecomputer, we add a rpath to the .libs so
the runtime linker finds the file.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 subsurface-configure.pri | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index 7836594..e3284b9 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -30,7 +30,7 @@ system(pkg-config --version 2>$$NUL >$$NUL) {
 !isEmpty(LIBDCDEVEL) {
     # find it next to our sources
     INCLUDEPATH += ../libdivecomputer/include
-    LIBS += -L../libdivecomputer/src/.libs -ldivecomputer
+    LIBS += -L../libdivecomputer/src/.libs -Wl,-rpath=../libdivecomputer/src/.libs -ldivecomputer
 } else:exists(/usr/local/lib/libdivecomputer.a) {
     LIBS += -L/usr/local/lib -ldivecomputer
 } else:exists(/usr/local/lib64/libdivecomputer.a) {
-- 
1.8.1.2



More information about the subsurface mailing list