about summary refs log tree commit diff
path: root/frida_mode/GNUmakefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-10-12 14:29:30 +0200
committerGitHub <noreply@github.com>2021-10-12 14:29:30 +0200
commitea05d4ed134f69fc8df12c27c4fa633aea45484b (patch)
tree5929c6441dbc42f9ba27e4e8b2397657b2c0cd73 /frida_mode/GNUmakefile
parent28df6d5a576b4ddc241223f2908d0f42ba7ef0bd (diff)
parent269dc29efe920abf3935d2052e11dfb94ec799e2 (diff)
downloadafl++-ea05d4ed134f69fc8df12c27c4fa633aea45484b.tar.gz
Merge pull request #1115 from devnexen/frida_mode_build_fix_non_x8664_arch
frida mode fix on x86_64 archs
Diffstat (limited to 'frida_mode/GNUmakefile')
-rw-r--r--frida_mode/GNUmakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/frida_mode/GNUmakefile b/frida_mode/GNUmakefile
index ab6efecf..4d6d7147 100644
--- a/frida_mode/GNUmakefile
+++ b/frida_mode/GNUmakefile
@@ -30,9 +30,7 @@ AFL_CFLAGS:=-Wno-unused-parameter \
 
 LDFLAGS+=-shared \
 		 -lpthread \
-		 -lresolv \
-		 -ldl \
-		 -lrt
+		 -lresolv
 
 ifdef DEBUG
 CFLAGS+=-Werror \
@@ -72,7 +70,9 @@ ifdef DEBUG
 endif
 LDFLAGS+=	-z noexecstack \
 			-Wl,--gc-sections \
-			-Wl,--exclude-libs,ALL
+			-Wl,--exclude-libs,ALL \
+		    -ldl \
+		    -lrt
 LDSCRIPT:=-Wl,--version-script=$(PWD)frida.map
 endif