From 9841be357ccb4269ccb7d307006d21cfa4087380 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Jul 25 2023 04:43:58 +0000 Subject: Kill rpath --- diff --git a/mingw-llvm.spec b/mingw-llvm.spec index 69b8067..5eacb35 100644 --- a/mingw-llvm.spec +++ b/mingw-llvm.spec @@ -24,6 +24,7 @@ Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{ # Set LLVM_INCLUDE_BENCHMARKS=OFF by default Patch0: llvm-no-benchmarks.patch +BuildRequires: chrpath BuildRequires: make BuildRequires: cmake BuildRequires: gcc-c++ @@ -199,6 +200,12 @@ rm -rf %{buildroot}%{mingw64_datadir}/opt-viewer install -Dpm 0755 %{_vpath_builddir}/bin/llvm-tblgen %{buildroot}%{_prefix}/%{mingw32_target}/bin/llvm-tblgen install -Dpm 0755 %{_vpath_builddir}/bin/llvm-tblgen %{buildroot}%{_prefix}/%{mingw64_target}/bin/llvm-tblgen +# Kill rpaths +chrpath --delete %{buildroot}%{_prefix}/%{mingw32_target}/bin/llvm-config +chrpath --delete %{buildroot}%{_prefix}/%{mingw64_target}/bin/llvm-config +chrpath --delete %{buildroot}%{_prefix}/%{mingw32_target}/bin/llvm-tblgen +chrpath --delete %{buildroot}%{_prefix}/%{mingw64_target}/bin/llvm-tblgen + %files -n mingw32-%{pkgname} %license LICENSE.TXT