[llvm/el6] Adding include path for ffi.h

Dave Johansen daveisfera at fedoraproject.org
Wed Feb 5 02:22:28 UTC 2014


commit 5b96b3dfff9ec6beaaa7d4fa7ee17a79cd58214c
Author: Dave Johansen <davejohansen at gmail.com>
Date:   Tue Feb 4 19:22:48 2014 -0700

    Adding include path for ffi.h

 llvm.spec |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/llvm.spec b/llvm.spec
index ba660e6..e392a48 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -47,7 +47,7 @@ Obsoletes: pure <= 0.55
 
 Name:           llvm
 Version:        3.4
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        The Low Level Virtual Machine
 
 Group:          Development/Languages
@@ -305,6 +305,10 @@ sed -i 's|/lib\>|/%{_lib}/%{name}|g' tools/llvm-config/llvm-config.cpp
 # clang is lovely and all, but fedora builds with gcc
 export CC=gcc
 export CXX=c++
+# Add include path for ffi.h
+export CPPFLAGS=-I$(echo %{_libdir}/libffi-*/include)
+export CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS"
+export CXXFLAGS="$RPM_OPT_FLAGS $CPPFLAGS"
 %configure \
   --libdir=%{_libdir}/%{name} \
   --disable-polly \
@@ -661,6 +665,9 @@ exit 0
 %endif
 
 %changelog
+* Tue Feb 04 2014 Dave Johansen <davejohansen at gmail.com> 3.4-7
+- Adding include path for ffi.h
+
 * Mon Feb 03 2014 Dave Johansen <davejohansen at gmail.com> 3.4-6
 - Removing specification of --with-c-include-dirs
 


More information about the scm-commits mailing list