gallium/auxiliary: Add -fno-rtti to CXXFLAGS on LLVM >= 3.2.
authorJohannes Obermayr <johannesobermayr@gmx.de>
Fri, 30 Nov 2012 22:53:58 +0000 (23:53 +0100)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sun, 20 Jan 2013 14:08:29 +0000 (15:08 +0100)
Also remove the recently added and overloaded LLVM_CXXFLAGS from CXXFLAGS.

Note: This is a candidate for the stable branches.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
(cherry picked from commit 21694b8eacbf63f8abdee6340510c0458a25a7fb)

Conflicts:
src/gallium/auxiliary/Makefile

src/gallium/auxiliary/Makefile

index 3ba3f9c..72208f1 100644 (file)
@@ -13,6 +13,11 @@ C_SOURCES += \
        $(GALLIVM_SOURCES)
 CPP_SOURCES += \
        $(GALLIVM_CPP_SOURCES)
+
+# LLVM >= 3.2 requires -fno-rtti
+ifeq ($(shell expr `echo $(LLVM_VERSION) | sed -e 's/\([0-9]\)\.\([0-9]\)/\10\2/g'` \>= 302),1)
+CXXFLAGS += -fno-rtti
+endif
 endif