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:
parent
589bb1c407
commit
2e1e219025
1 changed files with 3 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue