aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile.gcc_plugin
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-04-04 20:05:02 +0200
committervanhauser-thc <vh@thc.org>2021-04-04 20:05:02 +0200
commit3c846859eef4d17d2587ea28db83c680b51723a7 (patch)
tree4e394e959886ebad1889069958949623b9fce4ba /GNUmakefile.gcc_plugin
parentc23183f1dc39ce0792a879065e6aea33a4c571f8 (diff)
downloadafl++-3c846859eef4d17d2587ea28db83c680b51723a7.tar.gz
cleanup
Diffstat (limited to 'GNUmakefile.gcc_plugin')
-rw-r--r--GNUmakefile.gcc_plugin12
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