summaryrefslogtreecommitdiff
path: root/utils/MTP
diff options
context:
space:
mode:
Diffstat (limited to 'utils/MTP')
-rw-r--r--utils/MTP/beastpatcher/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/MTP/beastpatcher/Makefile b/utils/MTP/beastpatcher/Makefile
index d02f83481d..8be8c39d49 100644
--- a/utils/MTP/beastpatcher/Makefile
+++ b/utils/MTP/beastpatcher/Makefile
@@ -15,7 +15,10 @@ endif
15endif 15endif
16 16
17ifneq ($(findstring MINGW,$(shell uname)),MINGW) 17ifneq ($(findstring MINGW,$(shell uname)),MINGW)
18LIBS = /usr/lib/libmtp.a /usr/lib/libusb.a 18LIBS := -lmtp -lusb
19ifdef STATIC
20LIBS := -Wl,-Bstatic $(LIBS) -Wl,-Bdynamic
21endif
19CFLAGS += $(shell printf \ 22CFLAGS += $(shell printf \
20 '\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION\n' | \ 23 '\#include <libmtp.h>\nlibmtp version: LIBMTP_VERSION\n' | \
21 gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP') 24 gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP')