"/../../" + Multilib, Paths);
// Add the non-multilib suffixed paths (if potentially different).
-@@ -2189,7 +2189,7 @@ Linux::Linux(const Driver &D, const llvm
+@@ -2342,7 +2342,7 @@ Linux::Linux(const Driver &D, const llvm
}
}
addPathIfExists(SysRoot + "/lib", Paths);
- addPathIfExists(SysRoot + "/usr/lib", Paths);
+ addPathIfExists(SysRoot + LLVM_LIBDIR, Paths);
- }
- bool Linux::HasNativeLLVMSupport() const {
+ IsPIEDefault = SanitizerArgs(*this, Args).hasZeroBaseShadow();
+ }
--- llvm-3.2.src/tools/clang/lib/Driver/Tools.cpp.orig 2012-11-21 08:56:23.000000000 +0100
+++ llvm-3.2.src/tools/clang/lib/Driver/Tools.cpp 2013-01-26 18:43:56.952167604 +0100
@@ -218,7 +218,7 @@ static void addProfileRT(const ToolChain
@@ -2088,7 +2100,7 @@
// ABI requires a mapping between the GOT and the symbol table.
// Android loader does not support .gnu.hash.
- if (!isMipsArch(Arch) && !IsAndroid) {
+ if (!IsMips && !IsAndroid) {
- if (IsRedhat(Distro) || IsOpenSuse(Distro) ||
+ if (IsRedhat(Distro) || IsOpenSuse(Distro) || IsPLD(Distro) ||
(IsUbuntu(Distro) && Distro >= UbuntuMaverick))
#Source0Download: http://llvm.org/releases/download.html
Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.src.tar.gz
# Source0-md5: 40564e1dc390f9844f1711c08b08e391
+Source1: http://llvm.org/releases/%{version}/cfe-%{version}.src.tar.gz
+# Source1-md5: xyz
Patch0: %{name}-config.patch
# Data files should be installed with timestamps preserved
Patch1: %{name}-2.6-timestamp.patch
Dokumentacja HTML wiązania OCamla do LLVM-a.
%prep
-%setup -q -n %{name}-%{version}.src
+%setup -q -a1 -n %{name}-%{version}.src
+mv cfe-%{version}.src tools/clang
%patch0 -p1
%patch1 -p1
%patch2 -p1
--enable-shared \
--with-pic
-# hack so it will find own headers
-install -d Release
-ln -s lib Release/lib64
-
%{__make} \
VERBOSE=1 \
REQUIRES_RTTI=1 \
%{_mandir}/man1/llvm-nm.1*
%{_mandir}/man1/llvm-prof.1*
%{_mandir}/man1/llvm-ranlib.1*
+%{_mandir}/man1/llvm-readobj.1*
%{_mandir}/man1/llvm-stress.1*
%{_mandir}/man1/llvm-symbolizer.1*
%{_mandir}/man1/opt.1*
%files libs
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libLLVM-%{version}svn.so
+%attr(755,root,root) %{_libdir}/libLLVM-%{version}.so
%files devel
%defattr(644,root,root,755)