From 91cf3677e78bd4848b90e85d5458de3aa91d9db6 Mon Sep 17 00:00:00 2001 From: Martin Potter Date: Fri, 24 Jan 2020 10:50:47 -0800 Subject: [PATCH] Add bind_at_load compiler flag to force symbol binding Attempt to fix deadlock due to symbol binding, which takes a global lock loading a dylib, when running gc collection if another thread was stopped while holding the global lock. --- mono/mini/Makefile.am.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mono/mini/Makefile.am.in b/mono/mini/Makefile.am.in index ef744067c87e..e12bc967f66c 100755 --- a/mono/mini/Makefile.am.in +++ b/mono/mini/Makefile.am.in @@ -771,7 +771,7 @@ libmonoboehm_2_0_la_LIBADD = libmini.la $(interp_libs_with_mini) $(dbg_libs_with libmonoboehm_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags) libmonosgen_2_0_la_SOURCES = -libmonosgen_2_0_la_CFLAGS = $(mono_sgen_CFLAGS) @CXX_ADD_CFLAGS@ +libmonosgen_2_0_la_CFLAGS = $(mono_sgen_CFLAGS) @CXX_ADD_CFLAGS@ -Xcompiler -bind_at_load libmonosgen_2_0_la_LIBADD = libmini.la $(interp_libs_with_mini) $(dbg_libs_with_mini) $(sgen_libs) $(LIBMONO_DTRACE_OBJECT) $(LLVMMONOF) libmonosgen_2_0_la_LDFLAGS = $(libmonoldflags) $(monobin_platform_ldflags)