Skip to content

Commit 10100e7

Browse files
authored
[runtime] Link with libcoreclr on all platforms when it's enabled there.
1 parent f1713bc commit 10100e7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

runtime/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,16 @@ $(foreach platform,$(DOTNET_NATIVEAOT_PLATFORMS),$(foreach rid,$(DOTNET_$(platfo
142142

143143
# a few lookup tables, because the data we have is not always in the format we need it
144144
DOTNET_iphonesimulator_DYLIB_FLAGS=-lmonosgen-2.0 -framework UIKit
145+
DOTNET_iphonesimulator_CORECLR_DYLIB_FLAGS=-lcoreclr
145146
DOTNET_iphoneos_DYLIB_FLAGS=-lmonosgen-2.0 -framework UIKit
147+
DOTNET_iphoneos_CORECLR_DYLIB_FLAGS=-lcoreclr
146148
DOTNET_tvsimulator_DYLIB_FLAGS=-lmonosgen-2.0 -framework UIKit
149+
DOTNET_tvsimulator_CORECLR_DYLIB_FLAGS=-lcoreclr
147150
DOTNET_tvos_DYLIB_FLAGS=-lmonosgen-2.0 -framework UIKit
151+
DOTNET_tvos_CORECLR_DYLIB_FLAGS=-lcoreclr
148152
DOTNET_maccatalyst_DYLIB_FLAGS=-lmonosgen-2.0 -framework UIKit
149-
DOTNET_mac_DYLIB_FLAGS=-lcoreclr
153+
DOTNET_maccatalyst_CORECLR_DYLIB_FLAGS=-lcoreclr
154+
DOTNET_mac_CORECLR_DYLIB_FLAGS=-lcoreclr
150155

151156
#
152157
# DotNetInstallLibTemplate lipos or copies libraries into the destination directories
@@ -187,7 +192,7 @@ $(foreach platform,$(DOTNET_PLATFORMS),$(foreach rid,$(DOTNET_$(platform)_RUNTIM
187192
define DotNetLibXamarinTemplate
188193

189194
DOTNET$(6)_$(2)_LIBDIR ?= $$(TOP)/packages/microsoft.netcore.app.runtime$(7).$(2)/$(BUNDLED_NETCORE_PLATFORMS_PACKAGE_VERSION)/runtimes/$(2)/native
190-
DOTNET$(6)_$(2)_DYLIB_FLAGS = $(DOTNET_$(1)_DYLIB_FLAGS) -Wl,-install_name,libxamarin$(5).dylib -framework Foundation -framework CFNetwork -lz -L$(abspath $(DOTNET$(6)_$(2)_LIBDIR))
195+
DOTNET$(6)_$(2)_DYLIB_FLAGS = $(DOTNET_$(1)$(6)_DYLIB_FLAGS) -Wl,-install_name,libxamarin$(5).dylib -framework Foundation -framework CFNetwork -lz -L$(abspath $(DOTNET$(6)_$(2)_LIBDIR))
191196

192197
DOTNET_$(2)_$(4)_OBJECTS = $$(patsubst %,.libs/$(2)/%$(5).o, $(MONOTOUCH_SOURCE_STEMS)) $$(patsubst %,.libs/$(2)/%$(5).o, $(MONOTOUCH_$(shell echo $(2) | sed 's/.*-//' | tr a-z A-Z)_SOURCE_STEMS))
193198

0 commit comments

Comments
 (0)