From 9190edfb77cd24539a4c5de399a63087ea8d4f97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=98=95=EC=A3=BC/MDE=20Lab=28SR=29/=EC=82=BC?= =?utf8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 19 Dec 2023 06:24:50 +0900 Subject: [PATCH] [Tizen] Fix patchelf skipping (#369) --- packaging/coreclr.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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} -- 2.7.4