Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/mono: fix undefined reference to tls
@ 2016-09-08  8:51 Angelo Compagnucci
  2016-09-08 11:42 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Angelo Compagnucci @ 2016-09-08  8:51 UTC (permalink / raw)
  To: buildroot

This commit fixes the nasty undefined reference to tls bug experienced with musl.

Fixes:
http://autobuild.buildroot.net/results/048f04488cb8c7f4c32b828aa5214ebc22ba0153
Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
 package/mono/mono.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/mono/mono.mk b/package/mono/mono.mk
index 3d0b9bc..de4f16b 100644
--- a/package/mono/mono.mk
+++ b/package/mono/mono.mk
@@ -26,6 +26,10 @@ MONO_CONF_OPTS = --disable-gtk-doc \
 	--disable-mcs-build \
 	--enable-static
 
+ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
+MONO_CONF_OPTS += --with-tls=pthread
+endif
+
 # The libraries have been built by the host-mono build. Since they are
 # architecture-independent, we simply copy them to the target.
 define MONO_INSTALL_LIBS
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-09  7:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-08  8:51 [Buildroot] [PATCH] package/mono: fix undefined reference to tls Angelo Compagnucci
2016-09-08 11:42 ` Thomas Petazzoni
2016-09-09  5:29   ` Angelo Compagnucci
2016-09-09  7:26     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox