From fa7e58f45f1bf2a76add7c322f066964fab442a0 Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Wed, 15 Feb 2023 12:50:04 +0800 Subject: [PATCH] Security and SystemConfiguration is not required for non-libusb --- Makefile | 2 +- src/Makefile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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