Accepting request 128460 from home:llunak:branches:devel:tools:compiler

OBS-URL: https://build.opensuse.org/request/show/128460
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=159
This commit is contained in:
Ismail Dönmez 2012-07-20 11:25:55 +00:00 committed by Git OBS Bridge
parent 010c7d4330
commit 054ec25ad2
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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