summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2015-02-24 12:47:19 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-28 10:14:38 +0100
commit1fdd433b0895a83e98ef63745463b39381b9f1ee (patch)
treead79871e1575b420ca8000f0a8b36ffdf1277317 /toolchain
parentff984a2960dd7bd59e5b6a592e1825a20af7d00d (diff)
toolchain/glibc: set asm-CPPFLAGS to CFLAGS when compiling the final version
Otherwise, CFLAGS are not passed to gcc when compiling assembly (*.S) files. This is crucial for certain #define-optimisations (seen when compiling for armv5te).
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/glibc/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index 1faf1e639..75d2e70e9 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -18,6 +18,7 @@ ifeq (${ADK_MAKE_PARALLEL},y)
GLIBC_MAKEOPTS+= PARALLELMFLAGS="-j$(ADK_MAKE_JOBS)"
endif
+
GLIBC_BUILD_DIR_INITIAL:= ${WRKDIR}/$(PKG_NAME)-$(PKG_VERSION)-headers
GLIBC_BUILD_DIR_FINAL:= ${WRKDIR}/$(PKG_NAME)-$(PKG_VERSION)-final
@@ -54,7 +55,7 @@ $(WRKBUILD)/.configured:
touch $@
$(WRKBUILD)/.compiled:
- ${GLIBC_ENV} $(MAKE) ${GLIBC_MAKEOPTS} -C $(GLIBC_BUILD_DIR_FINAL) all
+ ${GLIBC_ENV} $(MAKE) ${GLIBC_MAKEOPTS} asm-CPPFLAGS='$${CFLAGS}' -C $(GLIBC_BUILD_DIR_FINAL) all
touch $@
$(WRKBUILD)/.installed: