Try hard not to link against a shared libdivecomputer

Versioning is wrong. It's not a library shared with other projects. And at
least on Mac and Windows we bundle it with the app, anyway.

Requested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-10-09 16:07:18 -07:00
parent a3d279b776
commit 7db3093b1b

View file

@ -48,9 +48,9 @@ PKG_CONFIG_OUT = $$system(pkg-config --version 2> $$NUL)
# 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
LIBS += /usr/local/lib/libdivecomputer.a
} else:exists(/usr/local/lib64/libdivecomputer.a) {
LIBS += -L/usr/local/lib64 -ldivecomputer
LIBS += /usr/local/lib64/libdivecomputer.a
} else:link_pkgconfig {
# find it via pkg-config
PKGCONFIG += libdivecomputer