mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-26 11:09:48 +01: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
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (,$(findstring xxd-libcheckra1nhelper.dylib.o, $(CFLAGS)))
|
ifeq ($(FORCE_HELPER),1)
|
||||||
ifeq ($(TARGET_OS),Darwin)
|
|
||||||
ifeq ($(DEV_BUILD),1)
|
|
||||||
OBJECTS += xxd-libcheckra1nhelper.dylib.o
|
OBJECTS += xxd-libcheckra1nhelper.dylib.o
|
||||||
endif
|
CFLAGS += -DFORCE_HELPER
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(NO_RAMDISK),1)
|
ifneq ($(NO_RAMDISK),1)
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ int exec_checkra1n() {
|
|||||||
unlink(checkra1n_path);
|
unlink(checkra1n_path);
|
||||||
return -1;
|
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;
|
char* libcheckra1nhelper_dylib_path = NULL;
|
||||||
{
|
{
|
||||||
struct utsname name;
|
struct utsname name;
|
||||||
@@ -123,7 +123,7 @@ checkra1n_exec: {};
|
|||||||
free(checkra1n_path);
|
free(checkra1n_path);
|
||||||
checkra1n_path = NULL;
|
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) {
|
if (libcheckra1nhelper_dylib_path != NULL) {
|
||||||
unlink(libcheckra1nhelper_dylib_path);
|
unlink(libcheckra1nhelper_dylib_path);
|
||||||
unsetenv("DYLD_INSERT_LIBRARIES");
|
unsetenv("DYLD_INSERT_LIBRARIES");
|
||||||
|
|||||||
Reference in new issue
Block a user