From d270b9a3f310f8eabcd757e552ef18eaec7c907d Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 17 Aug 2021 02:35:05 +0200 Subject: [PATCH] Remove lib64 rpaths --- ldc.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ldc.spec b/ldc.spec index adf4161..e9fcf15 100644 --- a/ldc.spec +++ b/ldc.spec @@ -42,6 +42,7 @@ Patch0: ldc-include-path.patch ExclusiveArch: %{ldc_arches} BuildRequires: bash-completion +BuildRequires: chrpath BuildRequires: cmake BuildRequires: gc BuildRequires: gcc @@ -180,6 +181,12 @@ geany -c geany_config -g phobos.d.tags $(find runtime/phobos/std -name "*.d") %install %cmake_install +# Remove lib64 rpaths +chrpath --delete %{buildroot}%{_bindir}/ldc-prune-cache +chrpath --delete %{buildroot}%{_bindir}/ldc2 +chrpath --delete %{buildroot}%{_bindir}/ldmd2 +chrpath --delete %{buildroot}%{_bindir}/ldc-build-runtime + # macros for D package mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d/ install --mode=0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ldc