diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-05-15 13:52:45 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-05-15 13:52:45 +0200 |
commit | 0c3820d56738c34c786a52f08c318f64af3c9908 (patch) | |
tree | dd1c699d906f6752284b9c82552615e58a223348 /mk/gcc.mk | |
parent | 82a144b955324ebf2ac5b70e1e10c586d0b6aab0 (diff) | |
download | embtoolkit-0c3820d56738c34c786a52f08c318f64af3c9908.tar.gz embtoolkit-0c3820d56738c34c786a52f08c318f64af3c9908.tar.bz2 embtoolkit-0c3820d56738c34c786a52f08c318f64af3c9908.tar.xz |
Toolchain: gcc: use make -C feature and be more precise at configure time
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'mk/gcc.mk')
-rw-r--r-- | mk/gcc.mk | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -43,7 +43,8 @@ gcc2_install: $(GCC2_BUILD_DIR)/.built #GCC first stage $(GCC1_BUILD_DIR)/.built: download_gcc $(GCC1_BUILD_DIR)/.decompressed \ $(GCC1_BUILD_DIR)/.configured - @cd $(GCC1_BUILD_DIR) && make && make install + PATH=$(PATH):$(TOOLS)/bin/ $(MAKE) -C $(GCC1_BUILD_DIR) && \ + PATH=$(PATH):$(TOOLS)/bin/ $(MAKE) -C $(GCC1_BUILD_DIR) install @touch $@ download_gcc: @test -e $(DOWNLOAD_DIR)/$(GCC_PACKAGE) || \ @@ -62,13 +63,14 @@ $(GCC1_BUILD_DIR)/.configured: --with-arch=$(GNU_TARGET_ARCH) --with-float=$(FLOAT_TYPE) \ --host=$(HOST_ARCH) --build=$(HOST_BUILD) \ --without-headers --with-newlib --disable-shared --disable-threads \ - --disable-libssp --disable-libgomp --disable-libmudflap \ + --disable-libssp --disable-libgomp --disable-libmudflap --disable-nls \ --enable-languages=c --with-gmp=$(GMP_HOST_DIR) --with-mpfr=$(MPFR_HOST_DIR) @touch $@ #GCC second stage $(GCC2_BUILD_DIR)/.built: $(GCC2_BUILD_DIR)/.configured - @cd $(GCC2_BUILD_DIR) && make && make install + PATH=$(PATH):$(TOOLS)/bin/ $(MAKE) -C $(GCC2_BUILD_DIR) && \ + PATH=$(PATH):$(TOOLS)/bin/ $(MAKE) -C $(GCC2_BUILD_DIR) install @touch $@ $(GCC2_BUILD_DIR)/.configured: |