about summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-06-14 17:38:17 +0200
committerGitHub <noreply@github.com>2020-06-14 17:38:17 +0200
commit741dce3ca6e3406b75576ad097e1209ca40a26ad (patch)
tree4a577af893d3a7083ec3ae827e2d557b6374d3e4 /GNUmakefile
parentab142282a32f93725926d59899ab17a62e65f060 (diff)
parent67d87dd2a9dbc393b56162e77ff3178f4e3f59fa (diff)
downloadafl++-741dce3ca6e3406b75576ad097e1209ca40a26ad.tar.gz
Merge pull request #404 from devnexen/haiku_porting
Porting to Haiku.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 7818a362..f1c5f99b 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -119,6 +119,13 @@ ifeq "$(shell uname -s)" "NetBSD"
   LDFLAGS += -L /usr/pkg/lib/
 endif
 
+ifeq "$(shell uname -s)" "Haiku"
+  SHMAT_OK=0
+  override CFLAGS  += -DUSEMMAP=1 -Wno-error=format -fpic
+  LDFLAGS+=-Wno-deprecated-declarations -lgnu
+  SPECIAL_PERFORMANCE += -DUSEMMAP=1
+endif
+
 AFL_FUZZ_FILES = $(wildcard src/afl-fuzz*.c)
 
 ifneq "$(shell command -v python3m 2>/dev/null)" ""