From c52a0a15c8ab104bc6b1ea68ace5c37173e2a384 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 25 Jan 2023 11:40:36 +0000 Subject: [PATCH] Fix FRIDA mode for OSX arm64 --- frida_mode/GNUmakefile | 15 +++++++++++++-- 1 file 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