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

[patches] PATCH: fix build for arm with OPTION_EGLIBC_LOCALE_CODE disabled



Here's another patch to fix build problems, this time for arm targets with OPTION_EGLIBC_LOCALE_CODE disabled. OK to commit?

-Sandra

2007-12-14  Sandra Loosemore  <sandra@xxxxxxxxxxxxxxxx>

	* sysdeps/arm/eabi/Makefile (aeabi_routines): Put aeabi_localeconv
	in option group OPTION_EGLIBC_LOCALE_CODE.
Index: sysdeps/arm/eabi/Makefile
===================================================================
*** sysdeps/arm/eabi/Makefile	(revision 4099)
--- sysdeps/arm/eabi/Makefile	(working copy)
***************
*** 1,8 ****
  ifeq ($(subdir),csu)
  aeabi_constants = aeabi_lcsts aeabi_sighandlers aeabi_math
! aeabi_routines = aeabi_assert aeabi_localeconv aeabi_errno_addr \
  	aeabi_mb_cur_max aeabi_atexit aeabi_memclr aeabi_memcpy \
  	aeabi_memmove aeabi_memset
  
  sysdep_routines += $(aeabi_constants) $(aeabi_routines)
  static-only-routines += $(aeabi_constants)
--- 1,10 ----
  ifeq ($(subdir),csu)
  aeabi_constants = aeabi_lcsts aeabi_sighandlers aeabi_math
! aeabi_routines = aeabi_assert aeabi_errno_addr \
  	aeabi_mb_cur_max aeabi_atexit aeabi_memclr aeabi_memcpy \
  	aeabi_memmove aeabi_memset
+ aeabi_routines-$(OPTION_EGLIBC_LOCALE_CODE) += aeabi_localeconv 
+ aeabi_routines += $(aeabi_routines-y)
  
  sysdep_routines += $(aeabi_constants) $(aeabi_routines)
  static-only-routines += $(aeabi_constants)