diff options
| author | van Hauser <vh@thc.org> | 2021-10-16 18:43:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-16 18:43:30 +0200 |
| commit | 88bcc34802cb9e655d2f25fd72d5c4a783bb22e7 (patch) | |
| tree | ecc67fdd879cf485ebdac161f14de08fe5008be9 /frida_mode/GNUmakefile | |
| parent | 8b1910e2689876c8ed4d0b9529296dc144692d35 (diff) | |
| parent | c96fdfac01829a5f6a9e98968817d6b6588389b8 (diff) | |
| download | afl++-88bcc34802cb9e655d2f25fd72d5c4a783bb22e7.tar.gz | |
Merge pull request #1118 from devnexen/frida_android_build_upd
frida mode android build fix proposal.
Diffstat (limited to 'frida_mode/GNUmakefile')
| -rw-r--r-- | frida_mode/GNUmakefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/frida_mode/GNUmakefile b/frida_mode/GNUmakefile index 4d6d7147..ed35c9f6 100644 --- a/frida_mode/GNUmakefile +++ b/frida_mode/GNUmakefile @@ -80,6 +80,22 @@ ifeq "$(shell uname)" "Linux" OS:=linux endif +ifneq "$(findstring android, $(shell $(CC) --version 2>/dev/null))" "" + OS:=android + ifneq "$(findstring aarch64, $(shell $(CC) --version 2>/dev/null))" "" + ARCH:=arm64 + endif + ifneq "$(findstring arm, $(shell $(CC) --version 2>/dev/null))" "" + ARCH:=arm + endif + ifneq "$(findstring x86_64, $(shell $(CC) --version 2>/dev/null))" "" + ARCH:=x86_64 + endif + ifneq "$(findstring i686, $(shell $(CC) --version 2>/dev/null))" "" + ARCH:=x86 + endif +endif + ifndef OS $(error "Operating system unsupported") endif |
