summaryrefslogtreecommitdiff
path: root/toolchain/glibc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-21 10:23:51 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-21 10:25:12 +0100
commita10807f338b54a34e3038ec3ea5fdcb12634550b (patch)
treeab185c93c978ea4d70dfdcfb155ec1c03016a1f7 /toolchain/glibc
parent7f58f90b8f6ba4ec94ea92769e966dfc5ad95137 (diff)
fix ppc64/sh4 glibc toolchain building
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'toolchain/glibc')
-rw-r--r--toolchain/glibc/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index 555ad4e4f..ab207d740 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -11,6 +11,14 @@ TARGET_CFLAGS:= $(filter-out -fno-asynchronous-unwind-tables,$(TARGET_CFLAGS))
TARGET_CFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
TARGET_LDFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))
+# glibc does not compile with Os
+TARGET_CFLAGS:= $(subst Os,O2,$(TARGET_CFLAGS))
+TARGET_CXXFLAGS:= $(subst Os,O2,$(TARGET_CXXFLAGS))
+ifneq ($(ADK_DEBUG),)
+TARGET_CFLAGS+= -O2
+TARGET_CXXFLAGS+= -O2
+endif
+
GLIBC_CONFOPTS:= --build=$(GNU_HOST_NAME) \
--host=$(GNU_TARGET_NAME) \
--with-headers=$(STAGING_TARGET_DIR)/usr/include \
@@ -36,9 +44,9 @@ GLIBC_CONFOPTS+= --with-fp
endif
GLIBC_ENV:= PATH='${TARGET_PATH}' \
- CONFIG_SHELL='$(strip ${SHELL})' \
BUILD_CC=${CC_FOR_BUILD} \
CFLAGS="$(TARGET_CFLAGS)" \
+ CXXFLAGS="$(TARGET_CXXFLAGS)" \
CC="${TARGET_CC}" \
CXX="${TARGET_CXX}" \
AR="${TARGET_AR}" \
@@ -47,19 +55,14 @@ GLIBC_ENV:= PATH='${TARGET_PATH}' \
libc_cv_cc_with_libunwind=yes \
libc_cv_c_cleanup=yes \
libc_cv_gnu99_inline=yes \
- libc_cv_initfini_array=yes \
-
-# glibc does not compile with Os
-TARGET_CFLAGS:= $(subst Os,O2,$(TARGET_CFLAGS))
-ifneq ($(ADK_DEBUG),)
-TARGET_CFLAGS+= -O2
-endif
+ libc_cv_initfini_array=yes
GLIBC_MAKEOPTS+= cross-compiling=yes
ifeq (${ADK_MAKE_PARALLEL},y)
GLIBC_MAKEOPTS+= PARALLELMFLAGS="-j$(ADK_MAKE_JOBS)"
endif
+
GLIBC_BUILD_DIR_FINAL:= ${WRKDIR}/$(PKG_NAME)-$(PKG_VERSION)-final
$(WRKBUILD)/.configured: