BUILD: Don't pass -fcheck-new to clang.

svn-id: r52582
This commit is contained in:
Johannes Schickel 2010-09-05 23:17:52 +00:00
parent fddb0f6c15
commit f51c3ad62e

View file

@ -34,8 +34,14 @@ ifeq "$(HAVE_GCC)" "1"
# being helpful. # being helpful.
#CXXFLAGS+= -Wmissing-format-attribute #CXXFLAGS+= -Wmissing-format-attribute
# Disable RTTI and exceptions, and enable checking of pointers returned by "new" # Disable RTTI and exceptions
CXXFLAGS+= -fno-rtti -fno-exceptions -fcheck-new CXXFLAGS+= -fno-rtti -fno-exceptions
ifneq "$(HAVE_CLANG)" "1"
# enable checking of pointers returned by "new", but only when we do not
# build with clang
CXXFLAGS+= -fcheck-new
endif
endif endif
ifeq "$(HAVE_CLANG)" "1" ifeq "$(HAVE_CLANG)" "1"