summaryrefslogtreecommitdiff
path: root/toolchain/gcc/common.mk
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-07-14 20:28:53 +0000
committerLuka Perkov <luka@openwrt.org>2014-07-14 20:28:53 +0000
commit8e4f0ec38de04617c2433d0c038baef700b59805 (patch)
tree33f87f9473802b231a8be4ed0a7e528cd35cd244 /toolchain/gcc/common.mk
parent81eeec8785e73ee83b03472eaa36ce285b61080f (diff)
downloadmtk-20170518-8e4f0ec38de04617c2433d0c038baef700b59805.zip
mtk-20170518-8e4f0ec38de04617c2433d0c038baef700b59805.tar.gz
mtk-20170518-8e4f0ec38de04617c2433d0c038baef700b59805.tar.bz2
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 <luka@openwrt.org> SVN-Revision: 41657
Diffstat (limited to 'toolchain/gcc/common.mk')
-rw-r--r--toolchain/gcc/common.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk
index 5dfbc48..e8ca778 100644
--- a/toolchain/gcc/common.mk
+++ b/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) \