about summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2020-06-14 15:26:43 +0000
committerDavid Carlier <devnexen@gmail.com>2020-06-14 15:32:02 +0000
commit67d87dd2a9dbc393b56162e77ff3178f4e3f59fa (patch)
tree24a839cd715e1bc204edeff4ee886f04d7fca267 /GNUmakefile
parentbfe5b88e782ffd3f97c2a25da60b0b36552a6a64 (diff)
downloadafl++-67d87dd2a9dbc393b56162e77ff3178f4e3f59fa.tar.gz
Porting to Haiku.
getrusage does not implement resident memory gathering, no shm api neither.
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)" ""