[llvm] configure gcc arch include dir again with --with-c-include-dirs (#893817)

Jens Petersen petersen at fedoraproject.org
Fri Feb 8 09:24:53 UTC 2013


commit a185901e955b539aaf2f08a48a563fad06dc79cc
Author: Jens Petersen <petersen at redhat.com>
Date:   Wed Feb 6 10:12:22 2013 +0900

    configure gcc arch include dir again with --with-c-include-dirs (#893817)
    
        (was in F16 but dropped during F17 development in 3.0-0.1.rc3)
    
        - BR gcc and gcc-c++ with gcc_version

 llvm.spec |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/llvm.spec b/llvm.spec
index 365db29..f403772 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -36,7 +36,7 @@ ExcludeArch: s390 s390x ppc ppc64
 
 Name:           llvm
 Version:        3.1
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        The Low Level Virtual Machine
 
 Group:          Development/Languages
@@ -69,7 +69,8 @@ Patch800: llvm-3.1-docs-pod-markup-fixes.patch
 BuildRequires:  bison
 BuildRequires:  chrpath
 BuildRequires:  flex
-BuildRequires:  gcc-c++ >= 3.4
+BuildRequires:  gcc = %{gcc_version}
+BuildRequires:  gcc-c++ = %{gcc_version}
 BuildRequires:  groff
 BuildRequires:  libffi-devel
 BuildRequires:  libtool-ltdl-devel
@@ -315,7 +316,8 @@ sed -i 's|/lib /usr/lib $lt_ld_extra|%{_libdir} $lt_ld_extra|' \
   --enable-debug-runtime \
   --enable-jit \
   --enable-libffi \
-  --enable-shared
+  --enable-shared \
+  --with-c-include-dirs=%{_includedir}:$(echo %{_prefix}/lib/gcc/%{_target_cpu}*/%{gcc_version}/include)
 
 # FIXME file this
 # configure does not properly specify libdir
@@ -565,6 +567,11 @@ exit 0
 %endif
 
 %changelog
+* Mon Feb  4 2013 Jens Petersen <petersen at redhat.com> - 3.1-16
+- bring back configuration for gcc arch include dir (#893817)
+  which was dropped in 3.0-0.1.rc3
+- BR gcc and gcc-c++ with gcc_version
+
 * Thu Jan 31 2013 Jens Petersen <petersen at redhat.com> - 3.1-15
 - move lvm-config manpage to devel subpackage (#855882)
 - pod2man moved to perl-podlators in F19


More information about the scm-commits mailing list