Enable nitool support of unique default base address generation by default
authorGleb Balykov <g.balykov@samsung.com>
Thu, 4 Jul 2019 10:37:10 +0000 (13:37 +0300)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Tue, 16 Jul 2019 05:05:17 +0000 (14:05 +0900)
This behavior can be changed manually in spec file: -DUNIQUE_DEFAULT_BASE_ADDR_SUPPORT

packaging/dotnet-launcher.spec

index 3277e7f..fa605df 100644 (file)
@@ -113,9 +113,7 @@ cmake \
 %if 0%{?use_default_base_addr}
        -DUSE_DEFAULT_BASE_ADDR="" \
 %endif
-%if 0%{?default_base_nitool}
        -DUNIQUE_DEFAULT_BASE_ADDR_SUPPORT="" \
-%endif
        NativeLauncher
 
 make %{?jobs:-j%jobs} VERBOSE=1
@@ -137,11 +135,7 @@ install -m 0644 %{name}.conf %{buildroot}/etc/tmpfiles.d/%{name}.conf
 %post
 mkdir -p /opt/etc/skel/.dotnet
 chsmack -t -a User::App::Shared /opt/etc/skel/.dotnet
-%if 0%{?default_base_nitool}
-%{_bindir}/nitool --gen-unique-baddr-system --dll %{_runtime_dir}/System.Private.CoreLib.dll
-%else
 %{_bindir}/nitool --dll %{_runtime_dir}/System.Private.CoreLib.dll
-%endif
 
 %files
 %manifest dotnet-launcher.manifest