Skip to content

Commit 034d9f1

Browse files
committed
use ld_classic in ILC build and in build integration
1 parent b54886b commit 034d9f1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ The .NET Foundation licenses this file to you under the MIT license.
163163
<LinkerArg Include="-L/usr/local/lib -linotify" Condition="'$(_targetOS)' == 'freebsd'" />
164164
<LinkerArg Include="@(ExtraLinkerArg->'-Wl,%(Identity)')" />
165165
<LinkerArg Include="@(NativeFramework->'-framework %(Identity)')" Condition="'$(_IsApplePlatform)' == 'true'" />
166+
<LinkerArg Include="-ld_classic" Condition="'$(_IsApplePlatform)' == 'true'" />
166167
<LinkerArg Include="-Wl,--eh-frame-hdr" Condition="'$(_IsApplePlatform)' != 'true'" />
167168
</ItemGroup>
168169

src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979

8080
<ItemGroup Condition="'$(NativeAotSupported)' == 'true'">
8181
<CustomLinkerArg Condition="'$(CrossBuild)' == 'true' and '$(_hostArchitecture)' == '$(_targetArchitecture)' and '$(_hostOS)' != 'windows' and '$(_IsApplePlatform)' != 'true'" Include="--gcc-toolchain=$(ROOTFS_DIR)/usr" />
82+
<CustomLinkerArg Condition="'$(_IsApplePlatform)' == 'true'" Include="-ld_classic" />
8283
</ItemGroup>
8384

8485
<Target Name="PublishCompiler"

0 commit comments

Comments
 (0)