@@ -81,7 +81,7 @@ The .NET Foundation licenses this file to you under the MIT license.
8181 <NativeObject >$(NativeIntermediateOutputPath)$(TargetName)$(NativeObjectExt)</NativeObject >
8282 <NativeBinary >$(NativeOutputPath)$(TargetName)$(NativeBinaryExt)</NativeBinary >
8383 <IlcExportUnmanagedEntrypoints Condition =" '$(IlcExportUnmanagedEntrypoints)' == '' and '$(NativeLib)' == 'Shared'" >true</IlcExportUnmanagedEntrypoints >
84- <ExportsFile Condition =" $(IlcExportUnmanagedEntrypoints) == 'true' and $( ExportsFile) == ''" >$(NativeIntermediateOutputPath)$(TargetName)$(ExportsFileExt)</ExportsFile >
84+ <ExportsFile Condition =" $(ExportsFile) == ''" >$(NativeIntermediateOutputPath)$(TargetName)$(ExportsFileExt)</ExportsFile >
8585
8686 <IlcCompileOutput >$(NativeObject)</IlcCompileOutput >
8787
@@ -240,7 +240,10 @@ The .NET Foundation licenses this file to you under the MIT license.
240240 <IlcArg Include =" @(TrimmerRootDescriptor->'--descriptor:%(FullPath)')" />
241241 <IlcArg Condition =" '$(NativeLib)' != ''" Include =" --nativelib" />
242242 <IlcArg Condition =" '$(CustomNativeMain)' == 'true'" Include =" --splitinit" />
243- <IlcArg Condition =" $(ExportsFile) != ''" Include =" --exportsfile:$(ExportsFile)" />
243+ <IlcArg Condition =" '$(ExportsFile)' != ''" Include =" --exportsfile:$(ExportsFile)" />
244+ <IlcArg Condition =" '$(_targetOS)' == 'win' and '$(DebuggerSupport)' != 'false'" Include =" --export-dynamic-symbol:DotNetRuntimeDebugHeader,DATA" />
245+ <IlcArg Condition =" '$(_targetOS)' != 'win' and '$(DebuggerSupport)' != 'false'" Include =" --export-dynamic-symbol:DotNetRuntimeDebugHeader" />
246+ <IlcArg Condition =" '$(IlcExportUnmanagedEntrypoints)' == 'true'" Include =" --export-unmanaged-entrypoints" />
244247 <IlcArg Include =" @(AutoInitializedAssemblies->'--initassembly:%(Identity)')" />
245248 <IlcArg Include =" @(DirectPInvoke->'--directpinvoke:%(Identity)')" />
246249 <IlcArg Include =" @(DirectPInvokeList->'--directpinvokelist:%(Identity)')" />
@@ -329,12 +332,11 @@ The .NET Foundation licenses this file to you under the MIT license.
329332 <CustomLinkerArg Include =" -o " $(NativeBinary)" " Condition =" '$(_targetOS)' != 'win'" />
330333 <CustomLinkerArg Include =" /OUT:" $(NativeBinary)" " Condition =" '$(_targetOS)' == 'win'" />
331334 <CustomLinkerArg Include =" /DEF:" $(ExportsFile)" " Condition =" '$(_targetOS)' == 'win' and $(ExportsFile) != ''" />
332- <CustomLinkerArg Include =" /EXPORT:DotNetRuntimeDebugHeader,DATA" Condition =" '$(_targetOS)' == 'win' and '$(DebuggerSupport)' != 'false'" />
333335 <CustomLinkerArg Include =" /LIBPATH:" %(AdditionalNativeLibraryDirectories.Identity)" " Condition =" '$(_targetOS)' == 'win' and '@(AdditionalNativeLibraryDirectories->Count())' > 0" />
334336 <CustomLinkerArg Include =" -exported_symbols_list " $(ExportsFile)" " Condition =" '$(_IsApplePlatform)' == 'true' and '$(ExportsFile)' != ''" />
335337 <CustomLinkerArg Include =" -exported_symbols_list /dev/null" Condition =" '$(OutputType)' == 'exe' and '$(_IsApplePlatform)' == 'true' and '$(ExportsFile)' == ''" />
336- <CustomLinkerArg Include =" -Wl,--version-script=$(ExportsFile)" Condition =" '$(_targetOS)' != 'win' and '$(_IsApplePlatform)' != 'true' and $(ExportsFile) != ''" />
337- <CustomLinkerArg Include =" -Wl,--export-dynamic" Condition =" '$(_targetOS)' != 'win' and '$(_IsApplePlatform)' != 'true' and '$(IlcExportUnmanagedEntrypoints )' == 'true' and '$(NativeLib)' = = ''" />
338+ <CustomLinkerArg Include =" -Wl,--version-script=$(ExportsFile)" Condition =" '$(_targetOS)' != 'win' and '$(_IsApplePlatform)' != 'true' and ' $(ExportsFile)' != ''" />
339+ <CustomLinkerArg Include =" -Wl,--export-dynamic" Condition =" '$(_targetOS)' != 'win' and '$(_IsApplePlatform)' != 'true' and '$(ExportsFile )' ! = ''" />
338340 <CustomLinkerArg Include =" @(LinkerArg)" />
339341 </ItemGroup >
340342 <ItemGroup Condition =" '$(_targetOS)' != 'win' and '$(_IsApplePlatform)' != 'true'" >
0 commit comments