aboutsummaryrefslogtreecommitdiff
path: root/frida_mode/GNUmakefile
diff options
context:
space:
mode:
authorYour Name <you@example.com>2023-01-25 11:40:36 +0000
committerYour Name <you@example.com>2023-01-25 12:37:38 +0000
commitc52a0a15c8ab104bc6b1ea68ace5c37173e2a384 (patch)
tree0ccb7e0850c5d0a0b5daa027f8fbbff0152b3f8d /frida_mode/GNUmakefile
parentb0898de3773d8142e68bf931d62b1668b010a9e4 (diff)
downloadAFLplusplus-c52a0a15c8ab104bc6b1ea68ace5c37173e2a384.tar.gz
Fix FRIDA mode for OSX arm64
Diffstat (limited to 'frida_mode/GNUmakefile')
-rw-r--r--frida_mode/GNUmakefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/frida_mode/GNUmakefile b/frida_mode/GNUmakefile
index b876284f..dda267bc 100644
--- a/frida_mode/GNUmakefile
+++ b/frida_mode/GNUmakefile
@@ -98,14 +98,25 @@ ifeq "$(shell uname)" "Darwin"
OS:=macos
AFL_CFLAGS:=$(AFL_CFLAGS) -Wno-deprecated-declarations
GUM_ARCH:=""
+ ifeq "$(ARCH)" "arm64"
TARGET_CC= \
- "clang" \
+ "clang" \
+ "-target" \
+ "arm64-apple-macos10.9"
+ TARGET_CXX= \
+ "clang++" \
"-target" \
+ "arm64-apple-macos10.9"
+ else
+ TARGET_CC= \
+ "clang" \
+ "-target" \
"x86_64-apple-macos10.9"
- TARGET_CXX= \
+ TARGET_CXX= \
"clang++" \
"-target" \
"x86_64-apple-macos10.9"
+ endif
else
ifdef DEBUG
AFL_CFLAGS:=$(AFL_CFLAGS) -Wno-prio-ctor-dtor