From b3faf20d5543c73fa33c7b48d974edf2166140c6 Mon Sep 17 00:00:00 2001 From: guibuilder_pel7ppc64lebuilder0 Date: Wed, 20 May 2020 08:21:59 +0200 Subject: [PATCH] llvm change include directory Signed-off-by: guibuilder_pel7ppc64lebuilder0 --- SPECS/llvm.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/SPECS/llvm.spec b/SPECS/llvm.spec index 802410f..c9354de 100644 --- a/SPECS/llvm.spec +++ b/SPECS/llvm.spec @@ -82,7 +82,7 @@ cd _build export PATH=$BUILD_DIR/bin:$PATH %cmake3 .. \ - -DINCLUDE_INSTALL_DIR=%{_includedir}/llvm \ + -DINCLUDE_INSTALL_DIR=%{_includedir}/ \ -DLLVM_VERSION_SUFFIX="-%{llvm_lib_suffix}" \ -DBUILD_SHARED_LIBS:BOOL=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ @@ -172,8 +172,8 @@ make install DESTDIR=%{buildroot} # fix multi-lib mv -v %{buildroot}%{_bindir}/llvm-config %{buildroot}%{_bindir}/%{name}-config-%{__isa_bits} ln -s %{_bindir}/%{name}-config-%{__isa_bits} %{buildroot}%{_bindir}/%{name}-config -mv -v %{buildroot}%{_includedir}/llvm/llvm/Config/llvm-config{,-%{__isa_bits}}.h -install -m 0644 %{SOURCE100} %{buildroot}%{_includedir}/llvm/llvm/Config/llvm-config.h +mv -v %{buildroot}%{_includedir}/llvm/Config/llvm-config{,-%{__isa_bits}}.h +install -m 0644 %{SOURCE100} %{buildroot}%{_includedir}/llvm/Config/llvm-config.h mv -v %{buildroot}%{_includedir}/clang/Config/config{,-%{__isa_bits}}.h install -m 0644 %{SOURCE101} %{buildroot}%{_includedir}/clang/Config/config.h @@ -191,8 +191,8 @@ ls %{buildroot}%{_libdir}/* | grep -v libLLVM | grep -v libclang | xargs rm -f rm -rf %{buildroot}%{_mandir}/man1 # RHEL: Strip out some headers Mesa doesn't need -rm -rf %{buildroot}%{_includedir}/llvm/llvm/{Assembly} -rm -rf %{buildroot}%{_includedir}/llvm/llvm/TableGen +rm -rf %{buildroot}%{_includedir}/llvm/{Assembly} +rm -rf %{buildroot}%{_includedir}/llvm/TableGen rm -rf %{buildroot}%{_includedir}/llvm-c/lto.h # RHEL: Strip out cmake build foo @@ -229,8 +229,8 @@ make %{?_smp_mflags} check-all %files devel %{_bindir}/llvm* -%{_includedir}/llvm/llvm -%{_includedir}/llvm/llvm-c +%{_includedir}/llvm +%{_includedir}/llvm-c %{_libdir}/cmake/llvm/ %{_includedir}/clang %{_includedir}/clang-c