summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-05-17 14:50:51 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-05-17 14:50:51 +0000
commit2e1e2190255b0bb74707285e11472747fda64853 (patch)
tree79ce4a8db01a01ae2465b495ea501fd685b23fb2 /rbutil
parent589bb1c4071dc3cab354c0d4acb86da05432e233 (diff)
downloadrockbox-2e1e2190255b0bb74707285e11472747fda64853.tar.gz
rockbox-2e1e2190255b0bb74707285e11472747fda64853.tar.bz2
rockbox-2e1e2190255b0bb74707285e11472747fda64853.zip
Make the call to link libusb statically nicer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17555 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/rbutilqt.pro7
1 files changed, 3 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro
index ba04159d58..665c47d90a 100644
--- a/rbutil/rbutilqt/rbutilqt.pro
+++ b/rbutil/rbutilqt/rbutilqt.pro
@@ -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 {