From 5b96b3dfff9ec6beaaa7d4fa7ee17a79cd58214c Mon Sep 17 00:00:00 2001 From: Dave Johansen Date: Tue, 4 Feb 2014 19:22:48 -0700 Subject: [PATCH] Adding include path for ffi.h --- llvm.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 3.4-7 +- Adding include path for ffi.h + * Mon Feb 03 2014 Dave Johansen 3.4-6 - Removing specification of --with-c-include-dirs