Skip to contentSkip to conversation

icu: fix build failure for musl

PATCH New Gustavo Zacarias 2 participants 2 messages Dec 12, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 icu: fix build failure for musl

musl doesn't have xlocale.h, and stdtod_l is crippled, so disable it. See thread from OE:
http://lists.openembedded.org/pipermail/openembedded-core/2016-November/128527.html
Fixes:
http://autobuild.buildroot.net/results/6ca/6caebf0f6c4adf66e67bedd0f04155413a9aa7bd/

---
 package/icu/icu.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/icu/icu.mk +5 -0
index 12406d7..b9e42de 100644
@@ -25,6 +25,11 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
 ICU_CONF_ENV += LIBS="-latomic"
 endif
 
+# strtod_l() is not supported by musl; also xlocale.h is missing
+ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
+ICU_CONF_ENV += ac_cv_func_strtod_l=no
+endif
+
 HOST_ICU_CONF_OPTS = \
 	--disable-samples \
 	--disable-tests \
Signature · 1 line
2.10.2
#1 lore raw

PATCH 1/1 icu: fix build failure for musl

Hello,

Quoted 10 lines · Gustavo Zacarias

musl doesn't have xlocale.h, and stdtod_l is crippled, so disable it. See thread from OE:
http://lists.openembedded.org/pipermail/openembedded-core/2016-November/128527.html
Fixes:
http://autobuild.buildroot.net/results/6ca/6caebf0f6c4adf66e67bedd0f04155413a9aa7bd/

---
 package/icu/icu.mk | 5 +++++
 1 file changed, 5 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com