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 endif ifneq ($(findstring MINGW,$(shell uname)),MINGW) -LIBS = /usr/lib/libmtp.a /usr/lib/libusb.a +LIBS := -lmtp -lusb +ifdef STATIC +LIBS := -Wl,-Bstatic $(LIBS) -Wl,-Bdynamic +endif CFLAGS += $(shell printf \ '\#include \nlibmtp version: LIBMTP_VERSION\n' | \ gcc -E -P - -o - | grep -q '^libmtp version: 0\.2' && echo '-DOLDMTP')