diff options
author | van Hauser <vh@thc.org> | 2020-10-14 17:37:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 17:37:21 +0200 |
commit | 7ca5524e55aa0cdfae6839b12e9a472fed1a69ad (patch) | |
tree | 976f344c0a18e34044b58a8531215b83610a1165 /GNUmakefile.gcc_plugin | |
parent | 735e8c39561d3d4d8bae01251e025e52e05472e2 (diff) | |
parent | 638bf19b651864bdc6ec801f87123d08f92af04e (diff) | |
download | afl++-7ca5524e55aa0cdfae6839b12e9a472fed1a69ad.tar.gz |
Merge pull request #584 from devnexen/dfbsd_build_fix
DragonFlyBSD build fix proposal.
Diffstat (limited to 'GNUmakefile.gcc_plugin')
-rw-r--r-- | GNUmakefile.gcc_plugin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/GNUmakefile.gcc_plugin b/GNUmakefile.gcc_plugin index d139387a..bf3a3288 100644 --- a/GNUmakefile.gcc_plugin +++ b/GNUmakefile.gcc_plugin @@ -56,7 +56,8 @@ ifeq "$(findstring Foundation,$(shell $(CC) --version))" "" CXX = g++ endif -PLUGIN_FLAGS = -fPIC -fno-rtti -I"$(shell $(CC) -print-file-name=plugin)/include" +PLUGIN_BASE = "$(shell $(CC) -print-file-name=plugin)" +PLUGIN_FLAGS = -fPIC -fno-rtti -I$(PLUGIN_BASE)/include -I$(PLUGIN_BASE) HASH=\# GCCVER = $(shell $(CC) --version 2>/dev/null | awk 'NR == 1 {print $$NF}') @@ -88,6 +89,10 @@ ifeq "$(shell uname -s)" "OpenBSD" PLUGIN_FLAGS += -I/usr/local/include endif +ifeq "$(shell uname -s)" "DragonFly" + PLUGIN_FLAGS += -I/usr/local/include +endif + ifeq "$(shell uname -s)" "SunOS" PLUGIN_FLAGS += -I/usr/include/gmp endif |