- Enable ld gold support
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=89
This commit is contained in:
committed by
Git OBS Bridge
parent
5c15b50344
commit
b859c3e7af
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 6 22:03:12 UTC 2011 - idonmez@suse.com
|
||||
|
||||
- Enable ld gold support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 1 11:31:57 UTC 2011 - idonmez@suse.com
|
||||
|
||||
|
11
llvm.spec
11
llvm.spec
@@ -19,7 +19,7 @@
|
||||
%define _revision 142912
|
||||
%define _release_version 3.0
|
||||
|
||||
%if 0%{?suse_version} >= 1200
|
||||
%if 0%{?suse_version} >= 1210
|
||||
%define _gcc_ver 4.6
|
||||
%else
|
||||
%define _gcc_ver 4.5
|
||||
@@ -43,6 +43,9 @@ Patch3: assume-opensuse.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
%if 0%{?suse_version} >= 1220
|
||||
BuildRequires: binutils-devel >= 2.21.90
|
||||
%endif
|
||||
BuildRequires: bison
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: cmake
|
||||
@@ -163,6 +166,9 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DCLANG_VENDOR="SUSE Linux" \
|
||||
%ifarch x86_64
|
||||
-DLLVM_LIBDIR_SUFFIX=64 \
|
||||
%endif
|
||||
%if 0%{?suse_version} >= 1220
|
||||
-DLLVM_BINUTILS_INCDIR=/usr/include \
|
||||
%endif
|
||||
-DCLANG_RESOURCE_DIR="../%{_lib}/clang/%{_release_version}" \
|
||||
-DC_INCLUDE_DIRS="/usr/include:\
|
||||
@@ -316,6 +322,9 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.*
|
||||
%{_mandir}/man1/clang.1.gz
|
||||
%{_libdir}/libclang.so.*
|
||||
%{_libdir}/libLTO.so
|
||||
%if 0%{?suse_version} >= 1220
|
||||
%{_libdir}/LLVMgold.so
|
||||
%endif
|
||||
%dir %{_libdir}/clang
|
||||
%dir %{_libdir}/clang/*
|
||||
%dir %{_libdir}/clang/*/include
|
||||
|
Reference in New Issue
Block a user