|
@@ -5,7 +5,7 @@
|
|
|
|
|
|
Name: llvm
|
|
|
Version: 2.9
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Release: 3%{?_dist_release}
|
|
|
Summary: The Low Level Virtual Machine
|
|
|
Summary(ja): LLVM - 低レベルバーチャルマシン
|
|
|
|
|
@@ -23,9 +23,16 @@ Patch0: llvm-2.6-timestamp.patch
|
|
|
# clang link failure if system GCC version is unknown
|
|
|
# http://llvm.org/bugs/show_bug.cgi?id=8897
|
|
|
Patch1: clang-2.9-add_gcc_vers.patch
|
|
|
+# fix bug 9798 - Linker flags fail / can't find crtbegin.o
|
|
|
+# http://llvm.org/bugs/show_bug.cgi?id=9798
|
|
|
+Patch2: clang-2.9-fix9798.patch
|
|
|
+# Vine Patch
|
|
|
+Patch3: clang-2.9-driver-ld.gold.patch
|
|
|
+Patch4: clang-2.9-driver-lib64.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
+BuildRequires: binutils-devel
|
|
|
BuildRequires: bison
|
|
|
BuildRequires: chrpath
|
|
|
BuildRequires: flex
|
|
@@ -199,6 +206,11 @@ mv clang-%{version} tools/clang
|
|
|
# clang patches
|
|
|
pushd tools/clang
|
|
|
%patch1 -p1 -b .add_gcc_ver
|
|
|
+%patch2 -p1 -b .fix9798
|
|
|
+%patch3 -p1 -b .ldgold
|
|
|
+%ifarch x86_64
|
|
|
+%patch4 -p1 -b .lib64
|
|
|
+%endif
|
|
|
popd
|
|
|
|
|
|
# Encoding fix
|
|
@@ -218,6 +230,7 @@ popd
|
|
|
--enable-jit \
|
|
|
--enable-libffi \
|
|
|
--enable-shared \
|
|
|
+ --with-binutils-include=%{_includedir} --enable-pic \
|
|
|
--with-c-include-dirs=%{_includedir}:$(find %{_prefix}/lib/gcc/*/* \
|
|
|
-maxdepth 0 -type d)/include \
|
|
|
%if %{__isa_bits} == 64
|
|
@@ -434,6 +447,9 @@ exit 0
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Jan 15 2012 NAKAMURA Kenta <kenta@vinelinux.org> - 2.9-3
|
|
|
+- added patch 2-4 to support -O4 link-time optimization
|
|
|
+
|
|
|
* Fri Sep 9 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.9-2
|
|
|
- disable -fno-var-tracking-assignments on ppc
|
|
|
(seems like gcc-4.4.5 still doesn't support this)
|