projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e866bd1
)
gallium/auxiliary: Add -fno-rtti to CXXFLAGS on LLVM >= 3.2.
author
Johannes Obermayr
<johannesobermayr@gmx.de>
Fri, 30 Nov 2012 22:53:58 +0000
(23:53 +0100)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/Makefile
b/src/gallium/auxiliary/Makefile
index dc2800337a591338218fe34da872296389e37eb5..72208f1a7f21c7360119f5b545880a1f460101f1 100644
(file)
--- a/
src/gallium/auxiliary/Makefile
+++ b/
src/gallium/auxiliary/Makefile
@@
-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