mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-25 01:35:17 +00:00
Enabling building on el6
This commit is contained in:
parent
4a13f67dc5
commit
0e564cfed8
1 changed files with 23 additions and 11 deletions
26
llvm.spec
26
llvm.spec
|
@ -11,16 +11,23 @@
|
||||||
%else
|
%else
|
||||||
%bcond_with ocaml
|
%bcond_with ocaml
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86 x86_64
|
# If build on Fedora or RHEL 7
|
||||||
|
%if 0%{?rhel}%{?fedora} >= 7
|
||||||
|
# gold not available on RHEL 6
|
||||||
|
%ifarch %ix86 x86_64
|
||||||
%bcond_without gold
|
%bcond_without gold
|
||||||
%else
|
%else
|
||||||
%bcond_with gold
|
%bcond_with gold
|
||||||
%endif
|
%endif
|
||||||
# ppc64 fails to build lldb upstream
|
# lldb requires gcc 4.6 or higher
|
||||||
%ifnarch ppc ppc64
|
# ppc64 fails to build lldb upstream
|
||||||
|
%ifnarch ppc ppc64
|
||||||
%bcond_without lldb
|
%bcond_without lldb
|
||||||
%else
|
%else
|
||||||
%bcond_with lldb
|
%bcond_with lldb
|
||||||
|
%endif
|
||||||
|
# gcc 4.4 doesn't understand c++11 (wants c++0x)
|
||||||
|
%bcond_without cxx11
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,7 +43,7 @@
|
||||||
|
|
||||||
Name: llvm
|
Name: llvm
|
||||||
Version: 3.4
|
Version: 3.4
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: The Low Level Virtual Machine
|
Summary: The Low Level Virtual Machine
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
@ -298,7 +305,9 @@ export CXX=c++
|
||||||
--libdir=%{_libdir}/%{name} \
|
--libdir=%{_libdir}/%{name} \
|
||||||
--disable-polly \
|
--disable-polly \
|
||||||
--disable-libcpp \
|
--disable-libcpp \
|
||||||
|
%if %{with cxx11}
|
||||||
--enable-cxx11 \
|
--enable-cxx11 \
|
||||||
|
%endif
|
||||||
--enable-clang-arcmt \
|
--enable-clang-arcmt \
|
||||||
--enable-clang-static-analyzer \
|
--enable-clang-static-analyzer \
|
||||||
--enable-clang-rewriter \
|
--enable-clang-rewriter \
|
||||||
|
@ -649,6 +658,9 @@ exit 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 18 2014 Dave Johansen <davejohansen@gmail.com> 3.4-4
|
||||||
|
- Enable building on EL6
|
||||||
|
|
||||||
* Fri Jan 17 2014 Dave Airlie <airlied@redhat.com> 3.4-3
|
* Fri Jan 17 2014 Dave Airlie <airlied@redhat.com> 3.4-3
|
||||||
- bump nvr for lldb on ppc disable
|
- bump nvr for lldb on ppc disable
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue