LD_INTERPRETER=$(patchelf --print-interpreter /emul/usr/bin/gcc)
LD_LOCAL_INTERPRETER=$(patchelf --print-interpreter ./.dotnet/dotnet)
-%if "%{?LD_INTERPRETER}" == "%{?LD_LOCAL_INTERPRETER}"
-%else
+if [ "$LD_INTERPRETER" == "$LD_LOCAL_INTERPRETER" ]; then
+ echo "Skip patchelf"
+else
LD_RPATH=$(patchelf --print-rpath /emul/usr/bin/gcc)
for file in $( find ./.dotnet ./.packages -name "dotnet" -type f -o -name "ilasm" -type f)
do
do
patchelf --set-rpath ${LD_RPATH}:%{_builddir}/%{name}-%{version}/libicu-57.1/ ${file}
done
-%endif
+fi
%endif
%ifarch %{ix86}