mirror of
https://github.com/palera1n/palera1n.git
synced 2026-12-06 00:04:18 +01:00
tries to decrease binary size
This commit is contained in:
1 parent
e4349ad231
commit
f4a683bffc
2 files changed
+7
-4
No files matched your search
@@ -9,10 +9,12 @@ TARGET_OS = $(shell uname -s)
|
||||
endif
|
||||
ifeq ($(TARGET_OS),Darwin)
|
||||
CFLAGS += -mmacosx-version-min=10.8
|
||||
LDFLAGS += -Wl,-dead_strip
|
||||
LIBS += $(DEP)/lib/libcrypto.35.tbd $(DEP)/lib/libssl.35.tbd $(DEP)/lib/libusb-1.0.a
|
||||
LIBS += -framework CoreFoundation -framework SystemConfiguration -framework IOKit -framework Security
|
||||
else
|
||||
LDFLAGS += -static -no-pie
|
||||
CFLAGS += -fdata-sections -ffunction-sections
|
||||
LDFLAGS += -static -no-pie -Wl,--gc-sections
|
||||
LIBS += $(DEP)/lib/libssl.a $(DEP)/lib/libcrypto.a $(DEP)/lib/libreadline.a -latomic
|
||||
endif
|
||||
LIBS += $(DEP)/lib/libusb-1.0.a
|
||||
@@ -60,3 +62,4 @@ distclean: clean
|
||||
rm -rf palera1n-* palera1n*.dSYM src/checkra1n-*
|
||||
|
||||
.PHONY: all palera1n clean
|
||||
|
||||
Reference in new issue
Block a user