%ghc_delete_rpaths: need to remove local RPATH for subpackaged libs
This commit is contained in:
parent
ce204c6b81
commit
58f3979109
12
macros.ghc
12
macros.ghc
@ -218,19 +218,25 @@ fi\
|
||||
|
||||
# ghc_delete_rpaths
|
||||
%ghc_delete_rpaths\
|
||||
%if %{defined _ghcdynlibdir}\
|
||||
%if %{undefined disable_ghc_delete_rpaths}\
|
||||
echo "running ghc_delete_rpaths:"\
|
||||
if ! type chrpath > /dev/null; then exit 1; fi\
|
||||
for i in $(find %{buildroot} -type f -executable -exec sh -c "file {} | grep -q 'dynamically linked'" \\; -print); do\
|
||||
if [ -x "$i" ]; then\
|
||||
chrpath -d $i\
|
||||
%if %{defined _ghcdynlibdir}\
|
||||
chrpath -d $i\
|
||||
%else\
|
||||
rpath=$(chrpath $i | sed -e "s@^$i: R.*PATH=@@")\
|
||||
case "$rpath" in\
|
||||
*$PWD/*) chrpath -r "%{ghclibdir}/lib:%{ghclibdir}/lib/%{ghcplatform}" $i ;;\
|
||||
*) ;;\
|
||||
esac\
|
||||
%endif\
|
||||
else\
|
||||
echo "%%ghc_delete_rpath: no $i executable"\
|
||||
exit 1\
|
||||
fi\
|
||||
done\
|
||||
%endif\
|
||||
%endif
|
||||
|
||||
# deprecated by ghc_delete_rpaths in F35
|
||||
|
Loading…
Reference in New Issue
Block a user