about summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-25 22:02:02 +0200
committervan Hauser <vh@thc.org>2020-06-25 22:02:02 +0200
commit171b1923e94b7157d9c0574fae890d31fd880e4c (patch)
treec0b8718e0c002ab6e1a84cc228bcb7a5d9a872e9 /GNUmakefile
parent8d5eb9487d891a7e5c8e68a5b71e0721ef83427a (diff)
downloadafl++-171b1923e94b7157d9c0574fae890d31fd880e4c.tar.gz
shmem release fix
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index ad7169cd..616d4f70 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -122,7 +122,7 @@ endif
 ifeq "$(shell uname -s)" "Haiku"
   SHMAT_OK=0
   override CFLAGS  += -DUSEMMAP=1 -Wno-error=format -fPIC
-  LDFLAGS+=-Wno-deprecated-declarations -lgnu
+  LDFLAGS += -Wno-deprecated-declarations -lgnu
   SPECIAL_PERFORMANCE += -DUSEMMAP=1
 endif
 
@@ -253,14 +253,14 @@ ifeq "$(shell echo '$(HASH)include <sys/ipc.h>@$(HASH)include <sys/shm.h>@int ma
 else
 	SHMAT_OK=0
 	override CFLAGS+=-DUSEMMAP=1
-	LDFLAGS+=-Wno-deprecated-declarations
+	LDFLAGS += -Wno-deprecated-declarations -lrt
 endif
 
 ifdef TEST_MMAP
 	SHMAT_OK=0
 	override CFLAGS += -DUSEMMAP=1
-	LDFLAGS += -Wno-deprecated-declarations
-else
+	LDFLAGS += -Wno-deprecated-declarations -lrt
+$(info LDFLAGS=$(LDFLAGS))
 endif
 
 all:	test_x86 test_shm test_python ready $(PROGS) afl-as test_build all_done