Build LLVMgold plugin on supported architectures
This commit is contained in:
parent
5f9e49a546
commit
0b697ba2ef
21
llvm.spec
21
llvm.spec
@ -20,9 +20,18 @@ ExcludeArch: s390 s390x ppc ppc64
|
|||||||
#global prerel rcX
|
#global prerel rcX
|
||||||
%global downloadurl http://llvm.org/%{?prerel:pre-}releases/%{version}%{?prerel:/%{prerel}}
|
%global downloadurl http://llvm.org/%{?prerel:pre-}releases/%{version}%{?prerel:/%{prerel}}
|
||||||
|
|
||||||
|
# gold linker support
|
||||||
|
# arch list from binutils spec
|
||||||
|
%global gold_arches %ix86 x86_64
|
||||||
|
%ifarch %gold_arches
|
||||||
|
%bcond_with gold
|
||||||
|
%else
|
||||||
|
%bcond_without gold
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: llvm
|
Name: llvm
|
||||||
Version: 3.0
|
Version: 3.0
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: The Low Level Virtual Machine
|
Summary: The Low Level Virtual Machine
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -50,6 +59,9 @@ BuildRequires: gcc-c++ >= 3.4
|
|||||||
BuildRequires: groff
|
BuildRequires: groff
|
||||||
BuildRequires: libffi-devel
|
BuildRequires: libffi-devel
|
||||||
BuildRequires: libtool-ltdl-devel
|
BuildRequires: libtool-ltdl-devel
|
||||||
|
%if %{with gold}
|
||||||
|
BuildRequires: binutils-devel
|
||||||
|
%endif
|
||||||
%if %{with ocaml}
|
%if %{with ocaml}
|
||||||
BuildRequires: ocaml-ocamldoc
|
BuildRequires: ocaml-ocamldoc
|
||||||
%endif
|
%endif
|
||||||
@ -247,13 +259,15 @@ sed -i 's|/lib /usr/lib $lt_ld_extra|/%{_lib} %{_libdir} $lt_ld_extra|' \
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# Disabling assertions now, rec. by pure and needed for OpenGTL
|
# Disabling assertions now, rec. by pure and needed for OpenGTL
|
||||||
# TESTFIX no PIC on ix86: http://llvm.org/bugs/show_bug.cgi?id=3801
|
|
||||||
%configure \
|
%configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--libdir=%{_libdir}/%{name} \
|
--libdir=%{_libdir}/%{name} \
|
||||||
%if 0%{?_with_doxygen}
|
%if 0%{?_with_doxygen}
|
||||||
--enable-doxygen \
|
--enable-doxygen \
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with gold}
|
||||||
|
--with-binutils-include=%{_includedir} \
|
||||||
|
%endif
|
||||||
%if 0%{?rhel} >= 7
|
%if 0%{?rhel} >= 7
|
||||||
--enable-targets=host \
|
--enable-targets=host \
|
||||||
%endif
|
%endif
|
||||||
@ -506,6 +520,9 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 24 2012 Michel Salim <salimma@fedoraproject.org> - 3.0-7
|
||||||
|
- Build LLVMgold plugin on supported architectures
|
||||||
|
|
||||||
* Tue Feb 7 2012 Michel Salim <salimma@fedoraproject.org> - 3.0-6
|
* Tue Feb 7 2012 Michel Salim <salimma@fedoraproject.org> - 3.0-6
|
||||||
- Make subpackage dependencies arch-specific
|
- Make subpackage dependencies arch-specific
|
||||||
- Make LLVM test failures non-fatal on ARM architectures as well (# 770208)
|
- Make LLVM test failures non-fatal on ARM architectures as well (# 770208)
|
||||||
|
Loading…
Reference in New Issue
Block a user