From 6f58118afb8f9be31efdd8e4002f933444f730ad Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Mon, 25 Mar 2019 00:27:27 -0500 Subject: [PATCH] Config.linux: Better check for gcc. To print in make: $(info IS_GCC is $(IS_GCC)) --- vm/Config.linux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/Config.linux b/vm/Config.linux index fae2cd4f0e..63089e42c1 100644 --- a/vm/Config.linux +++ b/vm/Config.linux @@ -6,8 +6,8 @@ LIBS = -ldl -lm -lrt -lpthread -Wl,--export-dynamic # clang spams warnings if we use -Wl,--no-as-needed with -c # -Wl,--no-as-needed is a gcc optimization, not required # we want to work with g++ aliased as c++ here, too -IS_GCC = $(shell $(CXX) --version | grep '(GCC)') +IS_GCC = $(shell $(CXX) --version | grep -o '(GCC)') -ifdef ($(IS_GCC)) +ifeq ($(IS_GCC), (GCC)) SITE_CFLAGS += -Wl,--no-as-needed endif -- 2.34.1