[Tizen] Fix build mode setup for crossgen2 self-contained publish
authorGleb Balykov <g.balykov@samsung.com>
Thu, 27 Jan 2022 13:25:33 +0000 (16:25 +0300)
committerGleb Balykov <g.balykov@samsung.com>
Tue, 27 Sep 2022 12:50:22 +0000 (15:50 +0300)
packaging/coreclr.spec

index 0e2a07e..772381a 100755 (executable)
@@ -330,7 +330,7 @@ export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/libicu-57.1/
 %ifarch x86_64
 # Publish crossgen2 as a single file with self-contained
 ./build.sh --portablebuild false %{_build_args} --subset clr.alljits --cmakeargs -DFEATURE_IBCLOGGER=true --cmakeargs -DFEATURE_ENABLE_NO_ADDRESS_SPACE_RANDOMIZATION=true --cmakeargs -DCLR_ADDITIONAL_LINKER_FLAGS=-Wl,-z,relro %{_pgo_flags}
-./.dotnet/dotnet publish --self-contained true -r linux-%{_barch} ./src/coreclr/tools/aot/crossgen2/crossgen2.csproj -c Release -p:PublishSingleFile=true
+./.dotnet/dotnet publish --self-contained true -r linux-%{_barch} ./src/coreclr/tools/aot/crossgen2/crossgen2.csproj -c %{dotnet_buildtype_clr} -p:PublishSingleFile=true
 %endif
 
 %if 0%{skipmscorlib}