Config.linux: Clean up warnings when compiling with clang on Linux. make CC=clang CPP=clang++

db4
Doug Coleman 2013-03-29 10:23:13 -07:00
parent 36b11c2ed1
commit 0d72e25365
1 changed files with 6 additions and 1 deletions

View File

@ -2,4 +2,9 @@ include vm/Config.unix
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 $(X11_UI_LIBS) -Wl,--export-dynamic
SITE_CFLAGS += -Wl,--no-as-needed
# clang spams warnings if we use -Wl,--no-as-needed with -c
# -Wl,--no-as-needed is a gcc optimization, not required
ifneq ($(CPP),clang++)
SITE_CFLAGS += -Wl,--no-as-needed
endif