diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-10-09 13:35:57 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-09 07:29:42 -0700 |
commit | cfbbf1bffec5e917aa4987f33825f324e2f03976 (patch) | |
tree | ce333f6445218ea338f5e762f643e8ea58f8d848 /subsurface-configure.pri | |
parent | bed44e65ec76d1a1c2effd98a294d102120ba4db (diff) | |
download | subsurface-cfbbf1bffec5e917aa4987f33825f324e2f03976.tar.gz |
Link static to libdivecomputer
In previous build system we linked static to libdivecomputer, so start
doing that again.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-configure.pri')
-rw-r--r-- | subsurface-configure.pri | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri index 7836594dc..c1eef761f 100644 --- a/subsurface-configure.pri +++ b/subsurface-configure.pri @@ -30,7 +30,12 @@ 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 += ../libdivecomputer/src/.libs/libdivecomputer.a + # Libusb-1.0 is only required if libdivecomputer was built with it. + # And libdivecomputer is only built with it if libusb-1.0 is + # installed. So get libusb if it exists, but don't complain + # about it if it doesn't. + LIBS += $$system(pkg-config --libs libusb-1.0 2> /dev/null) } else:exists(/usr/local/lib/libdivecomputer.a) { LIBS += -L/usr/local/lib -ldivecomputer } else:exists(/usr/local/lib64/libdivecomputer.a) { |