Security and SystemConfiguration is not required for non-libusb

This commit is contained in:
Nick Chan committed 2023-02-15 12:50:04 +08:00
1 parent 0aec2f123d
commit fa7e58f45f
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -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
+2
View File
@@ -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