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)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 4 Dec 2012 00:07:43 +0000 (19:07 -0500)
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>
src/gallium/auxiliary/Makefile

index dc2800337a591338218fe34da872296389e37eb5..72208f1a7f21c7360119f5b545880a1f460101f1 100644 (file)
@@ -13,7 +13,11 @@ C_SOURCES += \
        $(GALLIVM_SOURCES)
 CPP_SOURCES += \
        $(GALLIVM_CPP_SOURCES)
-CXXFLAGS += $(LLVM_CXXFLAGS)
+
+# 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