@@ -24,7 +24,7 @@ The .NET Foundation licenses this file to you under the MIT license.
24
24
<LinkerFlavor Condition =" '$(LinkerFlavor)' == '' and '$(_linuxLibcFlavor)' == 'bionic'" >lld</LinkerFlavor >
25
25
<LinkerFlavor Condition =" '$(LinkerFlavor)' == '' and '$(_targetOS)' == 'linux'" >bfd</LinkerFlavor >
26
26
<IlcDefaultStackSize Condition =" '$(IlcDefaultStackSize)' == '' and '$(_linuxLibcFlavor)' == 'musl'" >1572864</IlcDefaultStackSize >
27
- <UseSystemZlib Condition =" '$(UseSystemZlib)' == '' and !Exists('$(IlcFrameworkNativePath )libz.a')" >true</UseSystemZlib >
27
+ <UseSystemZlib Condition =" '$(UseSystemZlib)' == '' and !Exists('$(IlcSdkPath )libz.a')" >true</UseSystemZlib >
28
28
</PropertyGroup >
29
29
30
30
<Target Name =" SetupOSSpecificProps" DependsOnTargets =" $(IlcDynamicBuildPropertyDependencies)" >
@@ -136,7 +136,6 @@ The .NET Foundation licenses this file to you under the MIT license.
136
136
<NetCoreAppNativeLibrary Include =" System.Native" />
137
137
<NetCoreAppNativeLibrary Include =" System.Globalization.Native" Condition =" '$(StaticICULinking)' != 'true' and '$(InvariantGlobalization)' != 'true'" />
138
138
<NetCoreAppNativeLibrary Include =" System.IO.Compression.Native" />
139
- <NetCoreAppNativeLibrary Include =" z" Condition =" '$(UseSystemZlib)' != 'true'" /> <!-- zlib must be added after System.IO.Compression.Native, order matters. -->
140
139
<NetCoreAppNativeLibrary Include =" System.Net.Security.Native" Condition =" !$(_targetOS.StartsWith('tvos')) and '$(_linuxLibcFlavor)' != 'bionic'" />
141
140
<NetCoreAppNativeLibrary Include =" System.Security.Cryptography.Native.Apple" Condition =" '$(_IsApplePlatform)' == 'true'" />
142
141
<!-- Not compliant for iOS-like platforms -->
@@ -151,6 +150,11 @@ The .NET Foundation licenses this file to you under the MIT license.
151
150
<NativeLibrary Include =" @(NetCoreAppNativeLibrary->'%(EscapedPath)')" />
152
151
</ItemGroup >
153
152
153
+ <ItemGroup >
154
+ <!-- zlib must be added after System.IO.Compression.Native, order matters. -->
155
+ <NativeLibrary Condition =" '$(UseSystemZlib)' != 'true'" Include =" $(IlcSdkPath)libz.a" />
156
+ </ItemGroup >
157
+
154
158
<ItemGroup Condition =" '$(StaticICULinking)' == 'true' and '$(NativeLib)' != 'Static' and '$(InvariantGlobalization)' != 'true'" >
155
159
<NativeLibrary Include =" $(IntermediateOutputPath)libs/System.Globalization.Native/build/libSystem.Globalization.Native.a" />
156
160
<DirectPInvoke Include =" libSystem.Globalization.Native" />
0 commit comments