diff --git a/llvm.changes b/llvm.changes index 0b635ea..2e3b3e2 100644 --- a/llvm.changes +++ b/llvm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 19 14:14:20 UTC 2012 - llunak@suse.com + +- make link time optimization plugin accessible to ar/nm/ranlib +- build the plugin properly + ------------------------------------------------------------------- Thu Jul 14 17:30:58 UTC 2012 - adrian@suse.de diff --git a/llvm.spec b/llvm.spec index ed19c2c..90a50af 100644 --- a/llvm.spec +++ b/llvm.spec @@ -165,6 +165,8 @@ echo > utils/unittest/LLVMBuild.txt %build TOPLEVEL=$PWD +# as-needed avoids linking LLVMgold to LTO, just because cmake places -lLTO before the .o file is used +export SUSE_ASNEEDED=0 mkdir stage1 stage2 pushd stage1 @@ -276,6 +278,11 @@ pushd %{buildroot}%{_bindir} ln -s ccc-analyzer c++-analyzer popd +%if 0%{?suse_version} >= 1220 +mkdir -p %{buildroot}%{_libdir}/bfd-plugins +ln -s %{_libdir}/LLVMgold.so %{buildroot}%{_libdir}/bfd-plugins/ +%endif + sed -i 's,RealBin/bin/clang,RealBin/clang,' \ %{buildroot}%{_bindir}/scan-build @@ -354,6 +361,7 @@ rm %{buildroot}%{_libdir}/LLVMHello.* %{_libdir}/*profile*.a %if 0%{?suse_version} >= 1220 %{_libdir}/LLVMgold.so +%{_libdir}/bfd-plugins/ %endif %{_libdir}/clang