[mmp] Add support for mono 5.18 by pulling in libmono-system-native.a (#5328)

- https://github.com/xamarin/xamarin-macios/issues/5324
- Patch tweaked over multiple commits in master so applied directly instead of cherry-pick
This commit is contained in:
Chris Hamons 2019-01-10 13:31:31 -06:00 коммит произвёл GitHub
Родитель 65ec520faa
Коммит a4332c90aa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1352,6 +1352,13 @@ namespace Xamarin.Bundler {
args.Append (StringUtils.Quote (lib)).Append (' ');
// libmono-system-native.a needs to be included if it exists in the mono in question
string libmonoNative = Path.Combine (libdir, "libmono-system-native.a");
if (File.Exists (libmonoNative)) {
args.Append (StringUtils.Quote (libmonoNative)).Append (' ');
args.Append ("-u ").Append ("_SystemNative_RealPath").Append (' '); // This keeps libmono_system_native_la-pal_io.o symbols
}
if (profiling.HasValue && profiling.Value) {
args.Append (StringUtils.Quote (Path.Combine (libdir, "libmono-profiler-log.a"))).Append (' ');
args.Append ("-u _mono_profiler_init_log -lz ");