Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonojenkins <jo.shields+jenkins@xamarin.com>2020-12-13 13:27:06 +0300
committerGitHub <noreply@github.com>2020-12-13 13:27:06 +0300
commitb9c050faf2e3f71f34776e8c5030cb3de61634e5 (patch)
treeece170d312a0fe426586a891ce23896264283cc9
parent5e9cb6d1c1de430965312927d5aed7fcb27bfa73 (diff)
[aot] Quote the -Wl,install_name argument to clang. (#20660)
Fixes https://github.com/mono/mono/issues/20606. Co-authored-by: Zoltan Varga <vargaz@gmail.com>
-rw-r--r--mono/mini/aot-compiler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c
index 75349775cf5..3886cd7bbca 100644
--- a/mono/mini/aot-compiler.c
+++ b/mono/mini/aot-compiler.c
@@ -12309,7 +12309,7 @@ compile_asm (MonoAotCompile *acfg)
wrap_path (g_strdup_printf ("%s." AS_OBJECT_FILE_SUFFIX, acfg->tmpfname)), ld_flags);
#if defined(TARGET_MACH)
- g_string_append_printf (str, " -Wl,-install_name,%s%s", g_path_get_basename (acfg->image->name), MONO_SOLIB_EXT);
+ g_string_append_printf (str, " \"-Wl,-install_name,%s%s\"", g_path_get_basename (acfg->image->name), MONO_SOLIB_EXT);
#endif
command = g_string_free (str, FALSE);