From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/mono: fix undefined reference to tls
Date: Thu, 8 Sep 2016 10:51:07 +0200 [thread overview]
Message-ID: <1473324667-31678-1-git-send-email-angelo.compagnucci@gmail.com> (raw)
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
next reply other threads:[~2016-09-08 8:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-08 8:51 Angelo Compagnucci [this message]
2016-09-08 11:42 ` [Buildroot] [PATCH] package/mono: fix undefined reference to tls Thomas Petazzoni
2016-09-09 5:29 ` Angelo Compagnucci
2016-09-09 7:26 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1473324667-31678-1-git-send-email-angelo.compagnucci@gmail.com \
--to=angelo.compagnucci@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox