From 176ed2d7b246a39cb0b9bc3f6cc3bfe3335b250f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 13 Feb 2015 14:39:49 +0100 Subject: fix glibc build of mips32 soft-float toolchain --- toolchain/gcc/Makefile | 2 +- toolchain/glibc/Makefile.inc | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'toolchain') diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 122e2aef4..eb36c49b6 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -44,7 +44,6 @@ GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \ --disable-libstdcxx-pch \ --disable-ppl-version-check \ --disable-cloog-version-check \ - --disable-target-optspace \ --with-system-zlib \ --without-ppl \ --without-cloog \ @@ -252,6 +251,7 @@ $(GCC_BUILD_DIR_FINAL)/.configured: $(WRKBUILD)/configure \ ${GCC_CONFOPTS} \ ${GCC_FINAL_CONFOPTS} \ + --enable-cxx-flags='-fPIC' \ --enable-languages=$(LANGUAGES) \ --with-build-sysroot='$${prefix}/${STAGING_HOST2TARGET}' \ --with-sysroot='$${prefix}/${STAGING_HOST2TARGET}' 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}' \ -- cgit v1.2.3