mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 17:57:01 +02:00
fix x86 dev build
This commit is contained in:
1 parent
01bcc332cb
commit
06be39a71c
2 files changed
+4
-7
No files matched your search
+2
-5
@@ -10,12 +10,9 @@ OBJECTS += xxd-libcheckra1nhelper.dylib.o
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (,$(findstring xxd-libcheckra1nhelper.dylib.o, $(CFLAGS)))
|
||||
ifeq ($(TARGET_OS),Darwin)
|
||||
ifeq ($(DEV_BUILD),1)
|
||||
ifeq ($(FORCE_HELPER),1)
|
||||
OBJECTS += xxd-libcheckra1nhelper.dylib.o
|
||||
endif
|
||||
endif
|
||||
CFLAGS += -DFORCE_HELPER
|
||||
endif
|
||||
|
||||
ifneq ($(NO_RAMDISK),1)
|
||||
|
||||
@@ -59,7 +59,7 @@ int exec_checkra1n() {
|
||||
unlink(checkra1n_path);
|
||||
return -1;
|
||||
}
|
||||
#if defined(__APPLE__) && (TARGET_OS_IPHONE || defined(DEV_BUILD))
|
||||
#if defined(__APPLE__) && defined(__arm64__) && (TARGET_OS_IPHONE || defined(FORCE_HELPER))
|
||||
char* libcheckra1nhelper_dylib_path = NULL;
|
||||
{
|
||||
struct utsname name;
|
||||
@@ -123,7 +123,7 @@ checkra1n_exec: {};
|
||||
free(checkra1n_path);
|
||||
checkra1n_path = NULL;
|
||||
}
|
||||
#if defined(__APPLE__) && (TARGET_OS_IPHONE || defined(DEV_BUILD))
|
||||
#if defined(__APPLE__) && defined(__arm64__) && (TARGET_OS_IPHONE || defined(FORCE_HELPER))
|
||||
if (libcheckra1nhelper_dylib_path != NULL) {
|
||||
unlink(libcheckra1nhelper_dylib_path);
|
||||
unsetenv("DYLD_INSERT_LIBRARIES");
|
||||
|
||||
Reference in new issue
Block a user