1
0
Fork 0
forked from len0rd/rockbox

When building a static linux binary link libusb static.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16363 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-02-21 19:55:42 +00:00
parent e744dd4353
commit 5f540c784c

View file

@ -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