summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-22 14:16:59 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-22 14:17:22 +0200
commita2cfb07a3029c82f2be49c15df085f3b12ff8f0a (patch)
tree37c0cb8b23b35fbc45e90a00e26e29043346b0c1 /toolchain
parent303ae71120a965eb4295a6f3aa6e1813da010cc5 (diff)
use target cflags for libstdcxx, do not create shared libgcc
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 733dd9ddf..0814b16c8 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -200,15 +200,20 @@ $(GCC_BUILD_DIR_FINAL)/.configured:
--enable-languages=$(LANGUAGES) \
--with-build-sysroot='$${prefix}/${STAGING_HOST2TARGET}' \
--with-sysroot='$${prefix}/${STAGING_HOST2TARGET}' \
- --enable-shared
+ --enable-shared='libstdc++' \
+ --enable-cxx-flags='$(TARGET_CXXFLAGS)'
touch $@
$(WRKBUILD)/.compiled: $(GCC_BUILD_DIR_FINAL)/.configured
- PATH='$(TARGET_PATH)' $(MAKE) ${GCC_MAKEOPTS} -C $(GCC_BUILD_DIR_FINAL) all
+ cd $(GCC_BUILD_DIR_FINAL); \
+ PATH='$(TARGET_PATH)' \
+ $(MAKE) ${GCC_MAKEOPTS} all
touch $@
$(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
- PATH='$(TARGET_PATH)' $(MAKE) -C $(GCC_BUILD_DIR_FINAL) install
+ cd $(GCC_BUILD_DIR_FINAL); \
+ PATH='$(TARGET_PATH)' \
+ $(MAKE) install
# remove duplicate tools, convert hardlinks to symlinks
set -e; \
cd $(TOOLCHAIN_DIR)/usr/$(GNU_TARGET_NAME)/bin; \