about summary refs log tree commit diff
path: root/frida_mode/GNUmakefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-10-25 10:03:02 +0200
committerGitHub <noreply@github.com>2021-10-25 10:03:02 +0200
commit695da56808b2843764eb4d262f9ef57fac2dbd1d (patch)
tree869dce6a6ff3980fb13f7777e9dcdd42b8b5247f /frida_mode/GNUmakefile
parent0348ede4bc47264473efdac86415b9c805bdda40 (diff)
parent85ca0df98988cdb235e1d0cb9b156affc5afc80e (diff)
downloadafl++-695da56808b2843764eb4d262f9ef57fac2dbd1d.tar.gz
Merge pull request #1128 from devnexen/frida_mode_musl_build_fix
frida mode musl build fix
Diffstat (limited to 'frida_mode/GNUmakefile')
-rw-r--r--frida_mode/GNUmakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/frida_mode/GNUmakefile b/frida_mode/GNUmakefile
index ed35c9f6..b5fee7a6 100644
--- a/frida_mode/GNUmakefile
+++ b/frida_mode/GNUmakefile
@@ -78,6 +78,9 @@ endif
 
 ifeq "$(shell uname)" "Linux"
  OS:=linux
+ ifneq "$(findstring musl, $(shell ldd --version 2>&1 | head -n 1))" ""
+  CFLAGS+=       -D__MUSL__
+ endif
 endif
 
 ifneq "$(findstring android, $(shell $(CC) --version 2>/dev/null))" ""