- Fix llvm-config --libs output
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=138
This commit is contained in:
committed by
Git OBS Bridge
parent
8cf58183ff
commit
9356b84b41
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 24 10:12:32 UTC 2012 - idonmez@suse.com
|
||||
|
||||
- Fix llvm-config --libs output
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 22 19:24:24 UTC 2012 - idonmez@suse.com
|
||||
|
||||
|
10
llvm.spec
10
llvm.spec
@@ -19,6 +19,7 @@
|
||||
%define _revision 154914
|
||||
%define _release_version 3.1
|
||||
%define _supported_archs "arm,x86"
|
||||
%define _disabled_archs CellSPU CppBackend MBlaze Mips MSP430 PowerPC PTX Sparc XCore
|
||||
|
||||
Name: llvm
|
||||
Version: 3.0.99+svn155320
|
||||
@@ -151,6 +152,9 @@ sed -i s,/lib/,/%{_lib}/,g tools/clang/lib/Driver/Tools.cpp
|
||||
# FIXME
|
||||
rm -rf projects/compiler_rt
|
||||
|
||||
# Only enable target archs otherwise llvm-config is messed up
|
||||
sed -i s,"subdirectories = .*","subdirectories = ARM X86", lib/Target/LLVMBuild.txt
|
||||
|
||||
%build
|
||||
TOPLEVEL=$PWD
|
||||
mkdir stage1 stage2 stage3
|
||||
@@ -188,12 +192,12 @@ export CC=$TOPLEVEL/stage2/Release/bin/clang
|
||||
export CXX=$TOPLEVEL/stage2/Release/bin/clang++
|
||||
|
||||
../configure \
|
||||
--prefix=%{_prefix} \
|
||||
--prefix=%{_prefix} \
|
||||
--enable-optimized \
|
||||
--disable-assertions \
|
||||
--enable-pic \
|
||||
--disable-timestamps \
|
||||
--enable-targets=%{_supported_archs} \
|
||||
--enable-targets=%{_supported_archs} \
|
||||
%if 0%{?suse_version} >= 1220
|
||||
--with-binutils-include=/usr/include \
|
||||
%endif
|
||||
@@ -284,7 +288,7 @@ install -m 644 utils/vim/*.vim %{buildroot}%{_datadir}/vim/site/syntax/
|
||||
mv utils/vim/README utils/vim/README.vim
|
||||
|
||||
# Stuff we don't want to include
|
||||
rm %{buildroot}%{_libdir}/*clang*.a
|
||||
rm %{buildroot}%{_libdir}/libclang.a
|
||||
rm %{buildroot}%{_libdir}/BugpointPasses.*
|
||||
rm %{buildroot}%{_libdir}/LLVMHello.*
|
||||
|
||||
|
Reference in New Issue
Block a user