diff options
author | van Hauser <vh@thc.org> | 2021-04-16 13:53:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 13:53:08 +0200 |
commit | 400ab10cfdfdb25235bf0483bc0fa0332ae11461 (patch) | |
tree | c5f5c705b502109917f722ed79549e281f5a02c3 /GNUmakefile.gcc_plugin | |
parent | 98989f1088d04dd4c0d21834c38b7683f1cfb42d (diff) | |
parent | 5dad04867461e93cefd1ecee6d336fa4d9ef632d (diff) | |
download | afl++-400ab10cfdfdb25235bf0483bc0fa0332ae11461.tar.gz |
Merge branch 'dev' into dev
Diffstat (limited to 'GNUmakefile.gcc_plugin')
-rw-r--r-- | GNUmakefile.gcc_plugin | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/GNUmakefile.gcc_plugin b/GNUmakefile.gcc_plugin index aa93c688..b0f90f1b 100644 --- a/GNUmakefile.gcc_plugin +++ b/GNUmakefile.gcc_plugin @@ -41,6 +41,8 @@ CXXEFLAGS := $(CXXFLAGS) -Wall -std=c++11 CC ?= gcc CXX ?= g++ +SYS = $(shell uname -s) + ifeq "clang" "$(CC)" CC = gcc CXX = g++ @@ -75,25 +77,25 @@ ifeq "$(TEST_MMAP)" "1" override CFLAGS_SAFE += -DUSEMMAP=1 endif -ifneq "$(shell uname -s)" "Haiku" -ifneq "$(shell uname -s)" "OpenBSD" +ifneq "$(SYS)" "Haiku" +ifneq "$(SYS)" "OpenBSD" LDFLAGS += -lrt endif else CFLAGS_SAFE += -DUSEMMAP=1 endif -ifeq "$(shell uname -s)" "OpenBSD" +ifeq "$(SYS)" "OpenBSD" CC = egcc CXX = eg++ PLUGIN_FLAGS += -I/usr/local/include endif -ifeq "$(shell uname -s)" "DragonFly" +ifeq "$(SYS)" "DragonFly" PLUGIN_FLAGS += -I/usr/local/include endif -ifeq "$(shell uname -s)" "SunOS" +ifeq "$(SYS)" "SunOS" PLUGIN_FLAGS += -I/usr/include/gmp endif |