about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2020-07-25 16:14:27 +0000
committerDavid Carlier <devnexen@gmail.com>2020-07-25 16:14:27 +0000
commitae41cedafe93a5e588ca0f7931ba99c47b61cae7 (patch)
tree8adbbe33fab6cb89e911518a2c7cbe8d2e4dcd71
parent79598083849b34bf33c4a6c904e69c2743151082 (diff)
downloadafl++-ae41cedafe93a5e588ca0f7931ba99c47b61cae7.tar.gz
gcc plugin forcing USEMMAP on Haiku
-rw-r--r--gcc_plugin/GNUmakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc_plugin/GNUmakefile b/gcc_plugin/GNUmakefile
index 002437cb..4a4f0dcd 100644
--- a/gcc_plugin/GNUmakefile
+++ b/gcc_plugin/GNUmakefile
@@ -70,11 +70,13 @@ ifeq "$(TEST_MMAP)" "1"
 endif
 
 ifneq "$(shell uname -s)" "Haiku"
-  LDFLAGS += -lrt
+  	LDFLAGS += -lrt
+else
+	CFLAGS_SAFE += -DUSEMMAP=1
 endif
 
 ifeq "$(shell uname -s)" "SunOS"
-  PLUGIN_FLAGS += -I/usr/include/gmp
+  	PLUGIN_FLAGS += -I/usr/include/gmp
 endif