]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/Config.linux
audio.engine.test: cleanup using
[factor.git] / vm / Config.linux
index eb3a19d75a08fe82673b571a7d9e158f86ea3a7d..6cdc02942e3c68c6467691a34b9a4a9d74448cfa 100644 (file)
@@ -1,4 +1,13 @@
 include vm/Config.unix
-PLAF_DLL_OBJS += vm/os-genunix.o vm/os-linux.o
-CFLAGS += -export-dynamic
-LIBS = -ldl -lm -lpthread $(X11_UI_LIBS)
+PLAF_DLL_OBJS += vm/os-genunix.o vm/os-linux.o vm/mvm-unix.o
+PLAF_MASTER_HEADERS += vm/os-genunix.hpp vm/os-linux.hpp
+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 'Free Software Foundation')
+
+ifeq ($(IS_GCC),Free Software Foundation)
+       SITE_CFLAGS += -Wl,--no-as-needed
+endif