Browse Source

toolchain/gcc: pass proper flags for arm hard float build

This fixes eglibc build failure. More information about the bug can be found on
the link below.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61796

Signed-off-by: Luka Perkov <[email protected]>

SVN-Revision: 41657
Luka Perkov 11 years ago
parent
commit
8e4f0ec38d
1 changed files with 7 additions and 0 deletions
  1. 7 0
      toolchain/gcc/common.mk

+ 7 - 0
toolchain/gcc/common.mk

@@ -162,6 +162,13 @@ ifneq ($(GCC_ARCH),)
   GCC_CONFIGURE+= --with-arch=$(GCC_ARCH)
 endif
 
+ifneq ($(CONFIG_SOFT_FLOAT),y)
+  ifeq ($(CONFIG_arm),y)
+    GCC_CONFIGURE+= \
+		--with-float=hard
+  endif
+endif
+
 GCC_MAKE:= \
 	export SHELL="$(BASH)"; \
 	$(MAKE) \