aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2020-09-26 18:02:19 +0100
committerGitHub <noreply@github.com>2020-09-26 19:02:19 +0200
commite85fde201e988cf9e7cf608be394977f7c045a75 (patch)
treef246e56c69f8a09247a23ce797da408854fe4a99 /GNUmakefile
parente301822c684b4948ca5e21b40f437940469238f5 (diff)
downloadAFLplusplus-e85fde201e988cf9e7cf608be394977f7c045a75.tar.gz
OpenBSD build fix (#566)
* OpenBSD build fix proposal. Mainly the gcc plugin, using one of the egcc/eg++ version available. Needs pthread flag to r/w lock api. * README update
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 9e8b1a47..889c0e7d 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -218,6 +218,11 @@ ifneq "$(findstring NetBSD, $(shell uname))" ""
LDFLAGS += -lpthread
endif
+ifneq "$(findstring OpenBSD, $(shell uname))" ""
+ override CFLAGS += -pthread
+ LDFLAGS += -lpthread
+endif
+
TEST_CC = afl-gcc
COMM_HDR = include/alloc-inl.h include/config.h include/debug.h include/types.h