To print in make:
$(info IS_GCC is $(IS_GCC))
# 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
# 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)')
SITE_CFLAGS += -Wl,--no-as-needed
endif
SITE_CFLAGS += -Wl,--no-as-needed
endif