]> gitweb.factorcode.org Git - factor.git/commitdiff
Config.linux: Better check for g++.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 7 Apr 2019 23:54:08 +0000 (18:54 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 7 Apr 2019 23:54:59 +0000 (18:54 -0500)
A consistent string across platforms is 'Free Software Foundation'

vm/Config.linux

index 63089e42c18be7c0bc27d02400f291a587334aa5..6cdc02942e3c68c6467691a34b9a4a9d74448cfa 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 -o '(GCC)')
+IS_GCC = $(shell $(CXX) --version | grep -o 'Free Software Foundation')
 
-ifeq ($(IS_GCC), (GCC))
+ifeq ($(IS_GCC),Free Software Foundation)
        SITE_CFLAGS += -Wl,--no-as-needed
 endif