[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] Fix LOCALE_CODE option group on ARM



OK to check in the following simple patch?

Everything what __aeabi_localeconv() does is just calling __localeconv(); without LOCALE_CODE option group there is no __localeconv() in the library, so the link fails.


Thanks,

--
Maxim
CodeSourcery Inc.
2009-05-12  Maxim Kuvyrkov  <maxim@xxxxxxxxxxxxxxxx>

	* sysdeps/arm/eabi/Makefile (aeabi_localeconv): Don't build without
	EGLIBC_LOCAL_CODE option group.
Index: sysdeps/arm/eabi/Makefile
===================================================================
--- sysdeps/arm/eabi/Makefile	(revision 8444)
+++ sysdeps/arm/eabi/Makefile	(working copy)
@@ -1,8 +1,11 @@
 ifeq ($(subdir),csu)
 aeabi_constants = aeabi_lcsts aeabi_sighandlers aeabi_math
-aeabi_routines = aeabi_assert aeabi_localeconv aeabi_errno_addr \
+aeabi_routines = aeabi_assert aeabi_errno_addr \
 	aeabi_mb_cur_max aeabi_atexit aeabi_memclr aeabi_memcpy \
 	aeabi_memmove aeabi_memset
+ifeq (y,$(OPTION_EGLIBC_LOCALE_CODE))
+aeabi_routines += aeabi_localeconv
+endif
 
 sysdep_routines += $(aeabi_constants) $(aeabi_routines)
 static-only-routines += $(aeabi_constants)