eglibc/arm: doesn't build in thumb(1) mode
It runs out of registers, so build it in ARM mode, EABI mandates interworking so this isn't an issue. Tested in an arm920t board. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
b9053e0685
commit
103045534a
@ -23,6 +23,11 @@ EGLIBC_INSTALL_STAGING = YES
|
|||||||
|
|
||||||
EGLIBC_INSTALL_STAGING_OPT = install_root=$(STAGING_DIR) install
|
EGLIBC_INSTALL_STAGING_OPT = install_root=$(STAGING_DIR) install
|
||||||
|
|
||||||
|
# Thumb build is broken, build in ARM mode
|
||||||
|
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
||||||
|
EGLIBC_EXTRA_CFLAGS += -marm
|
||||||
|
endif
|
||||||
|
|
||||||
# Even though we use the autotools-package infrastructure, we have to
|
# Even though we use the autotools-package infrastructure, we have to
|
||||||
# override the default configure commands for several reasons:
|
# override the default configure commands for several reasons:
|
||||||
#
|
#
|
||||||
@ -36,7 +41,8 @@ define EGLIBC_CONFIGURE_CMDS
|
|||||||
# Do the configuration
|
# Do the configuration
|
||||||
(cd $(@D)/build; \
|
(cd $(@D)/build; \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CFLAGS="-O2" CPPFLAGS="" CXXFLAGS="-O2" \
|
CFLAGS="-O2 $(EGLIBC_EXTRA_CFLAGS)" CPPFLAGS="" \
|
||||||
|
CXXFLAGS="-O2 $(EGLIBC_EXTRA_CFLAGS)" \
|
||||||
$(SHELL) $(@D)/libc/configure \
|
$(SHELL) $(@D)/libc/configure \
|
||||||
ac_cv_path_BASH_SHELL=/bin/bash \
|
ac_cv_path_BASH_SHELL=/bin/bash \
|
||||||
libc_cv_forced_unwind=yes \
|
libc_cv_forced_unwind=yes \
|
||||||
|
Loading…
Reference in New Issue
Block a user