From adff9df98de879acbc770c9a57b58d5030d1fe10 Mon Sep 17 00:00:00 2001 From: imhameed Date: Thu, 3 Feb 2022 04:05:57 -0500 Subject: [PATCH] Link against the Compression framework. (#14034) Mono will eventually use functions from the Compression framework to decompress ICU data files during the runtime's initialization. Prepare for this by linking against the compression framework. Also see https://developer.apple.com/documentation/compression?language=objc. --- dotnet/targets/Xamarin.Shared.Sdk.targets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index 6282da65f228..3d68c959047f 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -1095,9 +1095,10 @@ <_NativeExecutableFrameworks Include="CFNetwork" Condition="'$(_PlatformName)' == 'iOS'" /> - + <_MainLinkerFlags Include="-lz" /> <_MainLinkerFlags Include="-liconv" /> + <_MainLinkerFlags Include="-lcompression" /> <_LinkNativeExecutableInputs Include="@(_NativeExecutableObjectFiles)" />