From: 이형주/MDE Lab(SR)/삼성전자 Date: Mon, 18 Dec 2023 21:24:50 +0000 (+0900) Subject: [Tizen] Fix patchelf skipping (#369) X-Git-Tag: accepted/tizen/unified/20231219.160330^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9190edfb77cd24539a4c5de399a63087ea8d4f97;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [Tizen] Fix patchelf skipping (#369) --- diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec index e180c77..ef5da87 100755 --- a/packaging/coreclr.spec +++ b/packaging/coreclr.spec @@ -218,8 +218,9 @@ cp %{SOURCE1} . 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 @@ -230,7 +231,7 @@ for file in $( find ./.dotnet ./.packages ./libicu-57.1 -iname "*.so" -or -iname do patchelf --set-rpath ${LD_RPATH}:%{_builddir}/%{name}-%{version}/libicu-57.1/ ${file} done -%endif +fi %endif %ifarch %{ix86}