no exec RPATH on arm with current ghc

This commit is contained in:
Jens Petersen 2014-03-18 12:16:44 +09:00
parent 9ec2eb0e21
commit 753e6b1a1b
1 changed files with 2 additions and 0 deletions

View File

@ -91,10 +91,12 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
## modify:
#%%ghc_fix_dynamic_rpath shellcheck
# since shellcheck-%{version}/ != %{pkg_name}-%{version}/
%if %{undefined ghc_without_dynamic}
PDIR=$(cd ..; pwd)
PROG=%{buildroot}%{_bindir}/shellcheck
NEWRPATH=$(chrpath $PROG | sed -e "s@^$PROG: RPATH=@@" | sed -e "s@$PDIR/shellcheck@%{ghclibdir}/%{pkg_name}@" -e "s@/dist/build@@g")
chrpath -r $NEWRPATH $PROG
%endif
%check