Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Added explicit -nopie to default linker options for Linux platforms w…
Browse files Browse the repository at this point in the history
…here PIE is used by default
  • Loading branch information
hasuo committed Jan 17, 2019
1 parent 83b8a7e commit d275e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/BuildIntegration/Microsoft.NETCore.Native.Unix.props
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ See the LICENSE file in the project root for more information.
<LinkerArg Include="-lm" />
<LinkerArg Include="-lcurl" />
<LinkerArg Include="-lz" />
<LinkerArg Include="-nopie" Condition="'$(TargetOS)' == 'Linux'" />
<LinkerArg Include="-lgssapi_krb5" Condition="'$(TargetOS)' != 'OSX'" />
<LinkerArg Include="-lrt" Condition="'$(TargetOS)' != 'OSX'" />
<LinkerArg Include="-licucore" Condition="'$(TargetOS)' == 'OSX'" />
Expand Down
1 change: 1 addition & 0 deletions tests/src/Simple/StaticLibrary/StaticLibrary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<NativeRunnerLinkerArg Include="-lm" />
<NativeRunnerLinkerArg Include="-lcurl" />
<NativeRunnerLinkerArg Include="-lz" />
<NativeRunnerLinkerArg Include="-nopie" Condition="'$(TargetOS)' == 'Linux'" />
<NativeRunnerLinkerArg Include="-lrt" Condition="'$(TargetOS)' != 'OSX'" />
<NativeRunnerLinkerArg Include="-licucore" Condition="'$(TargetOS)' == 'OSX'" />
</ItemGroup>
Expand Down

0 comments on commit d275e74

Please sign in to comment.