about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-07-26 15:30:47 +0200
committerGitHub <noreply@github.com>2020-07-26 15:30:47 +0200
commit23da490f265c761e44c4282eba76f7681f18fd2a (patch)
tree7b92929eaa6538c17c372fa0bf8bcc68e71b4008
parent7e4703c3282af86641d59a196fccb06df4ab6316 (diff)
parentae41cedafe93a5e588ca0f7931ba99c47b61cae7 (diff)
downloadafl++-23da490f265c761e44c4282eba76f7681f18fd2a.tar.gz
Merge pull request #469 from devnexen/haiku_gcc_build_fix
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