From f51c3ad62e5ea1ef2f3d0695065e0aab17f7e3fd Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 5 Sep 2010 23:17:52 +0000 Subject: BUILD: Don't pass -fcheck-new to clang. svn-id: r52582 --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ad2f8fcf9f..e8c8a17291 100644 --- a/Makefile +++ b/Makefile @@ -34,8 +34,14 @@ ifeq "$(HAVE_GCC)" "1" # being helpful. #CXXFLAGS+= -Wmissing-format-attribute - # Disable RTTI and exceptions, and enable checking of pointers returned by "new" - CXXFLAGS+= -fno-rtti -fno-exceptions -fcheck-new + # Disable RTTI and exceptions + 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 ifeq "$(HAVE_CLANG)" "1" -- cgit v1.2.3