]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/Config.linux
Put brackets around ipv6 addresses in `inet6 present`
[factor.git] / vm / Config.linux
index aac32fa3c31c154461ee9739be36f0d52937e611..6cdc02942e3c68c6467691a34b9a4a9d74448cfa 100644 (file)
@@ -5,6 +5,9 @@ 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
-ifneq ($(CXX),clang++)
+# we want to work with g++ aliased as c++ here, too
+IS_GCC = $(shell $(CXX) --version | grep -o 'Free Software Foundation')
+
+ifeq ($(IS_GCC),Free Software Foundation)
        SITE_CFLAGS += -Wl,--no-as-needed
 endif