SHA256
1
0
forked from pool/llvm

Accepting request 128467 from devel:tools:compiler

(forwarded request 128460 from llunak)

OBS-URL: https://build.opensuse.org/request/show/128467
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/llvm?expand=0&rev=31
This commit is contained in:
Ismail Dönmez 2012-07-21 12:32:17 +00:00 committed by Git OBS Bridge
commit fca4438a7a
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