]> gitweb.factorcode.org Git - factor.git/commitdiff
Config.linux: Better check for gcc.
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 25 Mar 2019 05:27:27 +0000 (00:27 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 25 Mar 2019 05:31:18 +0000 (00:31 -0500)
To print in make:
$(info IS_GCC is $(IS_GCC))

vm/Config.linux

index fae2cd4f0e15f8179d7a300d781f1370d7721c1f..63089e42c18be7c0bc27d02400f291a587334aa5 100644 (file)
@@ -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