Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>2018-01-23 16:27:34 +0300
committerJan Kotas <jkotas@microsoft.com>2018-01-23 16:27:34 +0300
commite0a801aea248db5154977bba6e29ee87fe101862 (patch)
treee6a50c314280467160e21cd1edecc457ec68f2a6 /src/BuildIntegration/Microsoft.NETCore.Native.Unix.props
parent411c3eff34eb232db3d6fd73e6b13d147b8711d1 (diff)
Fix WebApi sample to work on macOS (#5273)
* Pass required frameworks to the linker on macOS The `CoreFoundation` and `Security` frameworks are required to link anything that includes `System.Security.Cryptography.Native.Apple.a`. * Update WebApi instructions for macOS
Diffstat (limited to 'src/BuildIntegration/Microsoft.NETCore.Native.Unix.props')
-rw-r--r--src/BuildIntegration/Microsoft.NETCore.Native.Unix.props6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props b/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props
index 69539c5e1..309e4728f 100644
--- a/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props
+++ b/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props
@@ -63,6 +63,11 @@ See the LICENSE file in the project root for more information.
<AdditionalNativeLibrary Include="$(IlcPath)/framework/System.Security.Cryptography.Native.OpenSsl.a" Condition="'$(TargetOS)' != 'OSX'"/>
</ItemGroup>
+ <ItemGroup Condition="'$(TargetOS)' == 'OSX'">
+ <AdditionalNativeFramework Include="CoreFoundation" />
+ <AdditionalNativeFramework Include="Security" />
+ </ItemGroup>
+
<ItemGroup>
<LinkerArg Include="@(NativeLibrary)" />
<LinkerArg Include="@(AdditionalNativeLibrary)" />
@@ -79,6 +84,7 @@ See the LICENSE file in the project root for more information.
<LinkerArg Include="-licucore" Condition="'$(TargetOS)' == 'OSX'" />
<LinkerArg Include="-dynamiclib" Condition="'$(TargetOS)' == 'OSX' and '$(NativeLib)' == 'Shared'" />
<LinkerArg Include="-shared" Condition="'$(TargetOS)' != 'OSX' and '$(NativeLib)' == 'Shared'" />
+ <LinkerArg Include="@(AdditionalNativeFramework->'-framework %(Identity)')" Condition="'$(TargetOS)' == 'OSX'" />
</ItemGroup>
<Exec Command="command -v $(CppLinker)" IgnoreExitCode="true">