[sdks] dynamically link libmonosgen to mono-sgen for monodroid host builds (mono...
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Wed, 26 Jun 2019 15:10:03 +0000 (11:10 -0400)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 15:10:03 +0000 (11:10 -0400)
* [configure] Cosmetic AC_MSG_WARN fix

* [runtime] Mark mono_file_map_error as MONO_API, always

Fixed the `--with-static_mono=no` build on non-Win32

* [sdks] dynamically link libmonosgen to mono-sgen for monodroid host builds

Commit migrated from https://github.com/mono/mono/commit/927c608184b86b6c03958ba9aecec02340cd0661

src/mono/configure.ac
src/mono/mono/utils/mono-mmap.h

index 8725e29..4155ada 100644 (file)
@@ -6948,5 +6948,5 @@ echo "
        $disabled
 "
 if test x$with_static_mono = xno -a "x$host_win32" != "xyes"; then
-   AC_MSG_WARN(Turning off static Mono is a risk, you might run into unexpected bugs)
+   AC_MSG_WARN([Turning off static Mono is a risk, you might run into unexpected bugs])
 fi
index 8cf629a..25ce4ec 100644 (file)
@@ -64,11 +64,7 @@ MONO_API void* mono_file_map   (size_t length, int flags, int fd, guint64 offset
 // Last two parameters are optional.
 // This is mono_file_map but with optionally returning an error message.
 // See https://github.com/mono/mono/issues/8225.
-#if defined (HOST_WIN32)
 MONO_API
-#elif defined (__cplusplus)
-G_EXTERN_C
-#endif
 void*
 mono_file_map_error (size_t length, int flags, int fd, guint64 offset, void **ret_handle, const char *filepath, char **error_message);
 MONO_API int   mono_file_unmap (void *addr, void *handle);