[llvm] Tweak ld flags for memory usage and performance
Adam Jackson
ajax at fedoraproject.org
Wed May 1 21:33:14 UTC 2013
commit bb18301e2a544676ba9d0704d448301a0a7dd9d1
Author: Adam Jackson <ajax at redhat.com>
Date: Wed May 1 17:33:11 2013 -0400
Tweak ld flags for memory usage and performance
llvm-3.2-symbolic-shlib.patch | 12 ++++++++++++
llvm.spec | 9 ++++++++-
2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/llvm-3.2-symbolic-shlib.patch b/llvm-3.2-symbolic-shlib.patch
new file mode 100644
index 0000000..64d0422
--- /dev/null
+++ b/llvm-3.2-symbolic-shlib.patch
@@ -0,0 +1,12 @@
+diff -up llvm-3.2.src/tools/llvm-shlib/Makefile.jx llvm-3.2.src/tools/llvm-shlib/Makefile
+--- llvm-3.2.src/tools/llvm-shlib/Makefile.jx 2012-08-06 16:52:18.000000000 -0400
++++ llvm-3.2.src/tools/llvm-shlib/Makefile 2013-05-01 16:55:20.286980046 -0400
+@@ -76,7 +76,7 @@ endif
+
+ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU))
+ # Don't allow unresolved symbols.
+- LLVMLibsOptions += -Wl,--no-undefined
++ LLVMLibsOptions += -Wl,--no-undefined -Wl,-Bsymbolic
+ endif
+
+ ifeq ($(HOST_OS),SunOS)
diff --git a/llvm.spec b/llvm.spec
index 8649b6e..944e8d1 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -35,7 +35,7 @@
Name: llvm
Version: 3.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: The Low Level Virtual Machine
Group: Development/Languages
@@ -62,6 +62,9 @@ Patch11: clang-hardfloat-hack.patch
# test suite. i don't even.
Patch20: llvm-3.2-llvm-config-dso-hack.patch
+# hack the link flags for the shared libs for speed and memory usage
+Patch21: llvm-3.2-symbolic-shlib.patch
+
# from http://people.freedesktop.org/~tstellar/llvm/3.2/ as of 7 March 2013
# ref: http://lists.freedesktop.org/archives/mesa-dev/2013-March/035561.html
Patch600: R600-Mesa-9.1.patch.gz
@@ -280,6 +283,7 @@ mv clang-%{version}%{?prerel}.src tools/clang
# fix llvm-config --libs
#patch20 -p1 -b .orig
+%patch21 -p1 -b .orig
%patch600 -p1 -b .orig
%patch601 -p1 -b .orig
@@ -574,6 +578,9 @@ exit 0
%endif
%changelog
+* Wed May 01 2013 Adam Jackson <ajax at redhat.com> 3.2-5
+- Tweak ld flags for memory usage and performance
+
* Thu Apr 4 2013 Jens Petersen <petersen at redhat.com> - 3.2-4
- fix bogus date for 2.9-0.2.rc1
- drop insufficient llvm-3.2-clang-driver-secondary-arch-triplets.patch
More information about the scm-commits
mailing list