fix iOS 13 palera1n-ios

This commit is contained in:
Nick Chan committed 2023-02-20 20:00:33 +08:00
1 parent f519162c61
commit 01bcc332cb
6 files changed
+147 -4

No files matched your search

+17 -1
View File
@@ -4,6 +4,19 @@ OBJECTS = main.o dfuhelper.o devhelper.o lockdown_helper.o
OBJECTS += optparse.o override_file.o log.o lock_vars.o credits.o
OBJECTS += fake_embedded.o exec_checkra1n.o pongo_helper.o
ifeq (,$(findstring macosx, $(CFLAGS)))
ifneq (,$(findstring version-min=, $(CFLAGS)))
OBJECTS += xxd-libcheckra1nhelper.dylib.o
endif
endif
ifeq (,$(findstring xxd-libcheckra1nhelper.dylib.o, $(CFLAGS)))
ifeq ($(TARGET_OS),Darwin)
ifeq ($(DEV_BUILD),1)
OBJECTS += xxd-libcheckra1nhelper.dylib.o
endif
endif
endif
ifneq ($(NO_RAMDISK),1)
OBJECTS += xxd-ramdisk.dmg.o
@@ -93,6 +106,9 @@ ifneq (,$(findstring version-min=, $(CFLAGS)))
endif
endif
libcheckra1nhelper.dylib: chkstk.S
$(CC) $(CFLAGS) $(LDFLAGS) -shared chkstk.S -o libcheckra1nhelper.dylib
checkra1n-kpf-pongo:
curl -LO https://cdn.nickchan.lol/palera1n/artifacts/kpf/checkra1n-kpf-pongo
@@ -103,6 +119,6 @@ binpack.dmg:
curl -LO https://cdn.nickchan.lol/palera1n/c-rewrite/deps/binpack.dmg
clean:
rm -rf *.o palera1n checkra1n checkra1n.c palera1n.dSYM
rm -rf *.o palera1n checkra1n checkra1n.c palera1n.dSYM libcheckra1nhelper.dylib
.PHONY: all clean