summaryrefslogtreecommitdiff
path: root/toolchain/glibc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-13 14:39:49 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-14 11:47:20 +0100
commit176ed2d7b246a39cb0b9bc3f6cc3bfe3335b250f (patch)
tree6ff5622c20c6cfb10e52f60072e51a239f92cb20 /toolchain/glibc
parent5dce6450cf93bde8816892db3f67d74b9947b209 (diff)
fix glibc build of mips32 soft-float toolchain
Diffstat (limited to 'toolchain/glibc')
-rw-r--r--toolchain/glibc/Makefile.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/glibc/Makefile.inc b/toolchain/glibc/Makefile.inc
index 2b6bdcef0..035d43236 100644
--- a/toolchain/glibc/Makefile.inc
+++ b/toolchain/glibc/Makefile.inc
@@ -33,6 +33,12 @@ GLIBC_CONFOPTS:= --build=$(GNU_HOST_NAME) \
--with-tls \
--enable-kernel="2.6.32" \
--enable-add-ons
+ifeq ($(ADK_TARGET_FLOAT),soft)
+GLIBC_CONFOPTS+= --without-fp
+endif
+ifeq ($(ADK_TARGET_FLOAT),hard)
+GLIBC_CONFOPTS+= --with-fp
+endif
TARGET_CFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
TARGET_LDFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))
GLIBC_ENV:= PATH='${TARGET_PATH}' \