diff options
author | van Hauser <vh@thc.org> | 2021-04-20 11:38:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 11:38:09 +0200 |
commit | 48cef3c74727407f82c44800d382737265fe65b4 (patch) | |
tree | 07338ec82703c20cc1f78a235ac3ad16e2465bf1 /GNUmakefile.gcc_plugin | |
parent | f7179e44f6c46fef318b6413d9c00693c1af4602 (diff) | |
parent | 3b5fa3632b0e482b2915709d7fbec827e1d997b9 (diff) | |
download | afl++-48cef3c74727407f82c44800d382737265fe65b4.tar.gz |
Merge pull request #871 from AFLplusplus/dev
push to stable
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 |