diff --git a/Makefile b/Makefile index 1bc8948..e0ae2c2 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ ifeq (,$(findstring version-min=, $(CFLAGS))) CFLAGS += -mmacosx-version-min=10.8 endif LDFLAGS += -Wl,-dead_strip -LIBS += -framework CoreFoundation -framework SystemConfiguration -framework IOKit -framework Security +LIBS += -framework CoreFoundation -framework IOKit else CFLAGS += -fdata-sections -ffunction-sections LDFLAGS += -static -no-pie -Wl,--gc-sections diff --git a/src/Makefile b/src/Makefile index 4bc7973..968f406 100644 --- a/src/Makefile +++ b/src/Makefile @@ -38,6 +38,8 @@ LDID = ldid ifeq ($(TARGET_OS),Darwin) ifneq ($(USE_LIBUSB),1) OBJECTS += usb_iokit.o +else +LIBS += -framework SystemConfiguration -framework Security endif else USE_LIBUSB = 1