1
0
Fork 0
forked from len0rd/rockbox

Make the call to link libusb statically nicer.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17555 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-05-17 14:50:51 +00:00
parent 589bb1c407
commit 2e1e219025

View file

@ -170,10 +170,9 @@ unix:!static {
LIBS += -lusb
}
unix:static {
# force statically linking of libusb. Use gcc to get its path.
# if you have libusb.a in a non-standard lib path add it to
# the INCLUDEPATH variable above.
LIBS += $$system($$QMAKE_CC $$INCLUDEPATH -print-file-name=libusb.a)
# force statically linking of libusb. Libraries that are appended
# later will get linked dynamically again.
LIBS += -Wl,-Bstatic -lusb -Wl,-Bdynamic
}
macx {