Config.linux: Better check for g++.

A consistent string across platforms is 'Free Software Foundation'
clean-macosx-x86-32
Doug Coleman 2019-04-07 18:54:08 -05:00
parent 3f777a6fdd
commit 9d06dcb67e
1 changed files with 2 additions and 2 deletions

View 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