diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-02-21 19:55:42 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2008-02-21 19:55:42 +0000 |
commit | 5f540c784cea6ce28e9dece8a4db8582386a617b (patch) | |
tree | aae1890725ff862b56a2e82630bc2c293338e491 /rbutil/rbutilqt | |
parent | e744dd43538d457b5c45c9f649c9145aa2da6c75 (diff) |
When building a static linux binary link libusb static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16363 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.pro | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro index 5676db810f..b95eee40b9 100644 --- a/rbutil/rbutilqt/rbutilqt.pro +++ b/rbutil/rbutilqt/rbutilqt.pro @@ -17,7 +17,7 @@ rbspeex.commands = @$(MAKE) -C ../../tools/rbspeex librbspeex.a QMAKE_EXTRA_TARGETS += rbspeex PRE_TARGETDEPS += rbspeex -# add a custom rule for makeing the translations +# add a custom rule for making the translations lrelease.commands = $$[QT_INSTALL_BINS]/lrelease -silent rbutilqt.pro QMAKE_EXTRA_TARGETS += lrelease PRE_TARGETDEPS += lrelease @@ -161,8 +161,16 @@ win32 { unix { SOURCES += ../ipodpatcher/ipodio-posix.c SOURCES += ../sansapatcher/sansaio-posix.c +} +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) +} macx { QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk |