Skip to content

Commit

Permalink
[dotnet] Remove libSystem.Net.Security.Native from tvOS builds when u…
Browse files Browse the repository at this point in the history
…sing NativeAOT.
  • Loading branch information
rolfbjarne committed Jun 22, 2023
1 parent 7d65804 commit 97b91f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dotnet/targets/Xamarin.Shared.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,14 @@
<NativeLib>static</NativeLib>
</PropertyGroup>

<!-- Remove libSystem.Net.Security.Native.a from tvOS when using NativeAOT, it's not shipped on tvOS -->
<ItemGroup>
<DirectPInvoke Remove="libSystem.Net.Security.Native" />
<NetCoreAppNativeLibrary Remove="System.Net.Security.Native" />
<NativeLibrary Remove="@(NativeLibrary)" Condition="'%(Filename)' == 'libSystem.Net.Security.Native'" />
<LinkerArg Remove="@(LinkerArg)" Condition="'%(Filename)' == 'libSystem.Net.Security.Native'" />
</ItemGroup>

<ItemGroup>
<!-- We need to mark all __Internal P/Invokes as direct, so that the native linker doesn't remove them -->
<DirectPInvoke Include="__Internal" />
Expand Down

0 comments on commit 97b91f1

Please sign in to comment.