[mkbundle] Link against Objective-C runtime and Foundation framework on OSX (#5642)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 27 Sep 2017 09:15:12 +0000 (11:15 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2017 09:15:12 +0000 (11:15 +0200)
commit5728865725b12ad307007f14c16f3d7e31d274dd
treee250415d4344f213a17f04e3d236e0b947f29346
parenta54603a60449865979f6a1f7ad97b7997548c0c8
[mkbundle] Link against Objective-C runtime and Foundation framework on OSX (#5642)

Without it you get errors like the following in old-style mkbundle:

```
Undefined symbols for architecture x86_64:
  "_CFLocaleCopyCurrent", referenced from:
      _ves_icall_System_Globalization_CultureInfo_get_current_locale_name in libmono-2.0.a(libmonoruntimesgen_la-locales.o)
  "_CFLocaleGetIdentifier", referenced from:
      _ves_icall_System_Globalization_CultureInfo_get_current_locale_name in libmono-2.0.a(libmonoruntimesgen_la-locales.o)
  "_CFLocaleGetValue", referenced from:
      _ves_icall_System_Globalization_CultureInfo_get_current_locale_name in libmono-2.0.a(libmonoruntimesgen_la-locales.o)
  "_CFRelease", referenced from:
      _ves_icall_System_Globalization_CultureInfo_get_current_locale_name in libmono-2.0.a(libmonoruntimesgen_la-locales.o)
...
```

We actually documented this in the 3.4 release notes: http://www.mono-project.com/docs/about-mono/releases/3.4.0/#breaking-changes

However this means that you had to use the "-c" mkbundle option
to only generate the .c stub so you could pass those additional libraries.
mcs/tools/mkbundle/mkbundle.cs