about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-01-25 15:02:57 +0100
committerGitHub <noreply@github.com>2023-01-25 15:02:57 +0100
commit322e5e2fb63cb6f99da2df0f618ee89e547bcdb7 (patch)
tree6fdbf1db5e60ad9f34a5737773beaf64ba1364e7
parentc5a84a124c56a9478cf779b5aea7369a4eed07ed (diff)
parentc52a0a15c8ab104bc6b1ea68ace5c37173e2a384 (diff)
downloadafl++-322e5e2fb63cb6f99da2df0f618ee89e547bcdb7.tar.gz
Merge pull request #1623 from WorksButNotTested/osx
Fix FRIDA mode for OSX x64
-rw-r--r--frida_mode/GNUmakefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/frida_mode/GNUmakefile b/frida_mode/GNUmakefile
index d283c3d7..dda267bc 100644
--- a/frida_mode/GNUmakefile
+++ b/frida_mode/GNUmakefile
@@ -98,6 +98,25 @@ ifeq "$(shell uname)" "Darwin"
  OS:=macos
  AFL_CFLAGS:=$(AFL_CFLAGS) -Wno-deprecated-declarations
  GUM_ARCH:=""
+ ifeq "$(ARCH)" "arm64"
+  TARGET_CC= \
+  	"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= \
+ 	"clang++" \
+ 	"-target" \
+	"x86_64-apple-macos10.9"
+ endif
 else
 ifdef DEBUG
  AFL_CFLAGS:=$(AFL_CFLAGS) -Wno-prio-ctor-dtor