diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-12-15 23:23:31 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-12-15 23:23:31 +0100 |
commit | 027fb81b4782ba85223b006cd7547302ec0fe8ad (patch) | |
tree | f10ab539c2029db4d02c558a5218e0855fc51c16 | |
parent | 007c6332933a4540f0101668aac0b00d500c4da7 (diff) | |
download | embtoolkit-027fb81b4782ba85223b006cd7547302ec0fe8ad.tar.gz embtoolkit-027fb81b4782ba85223b006cd7547302ec0fe8ad.tar.bz2 embtoolkit-027fb81b4782ba85223b006cd7547302ec0fe8ad.tar.xz |
Toolchain: gcc: also install libgcc in sysroot when clang/llvm is main cross compiler
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r-- | mk/gcc.mk | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -123,6 +123,28 @@ GCC2_CONFIGURE_OPTS := --with-sysroot=$(embtk_sysroot) \ CONFIG_EMBTK_GCC2_VERSION_GIT := $(CONFIG_EMBTK_GCC_VERSION_GIT) CONFIG_EMBTK_GCC2_REFSPEC := $(CONFIG_EMBTK_GCC_REFSPEC) +define __embtk_postinstall_gcc2 + ($(if $(CONFIG_EMBTK_32BITS_FS), \ + cp -d $(embtk_tools)/$(STRICT_GNU_TARGET)/lib/*.so* \ + $(embtk_sysroot)/lib/ &&) \ + $(if $(CONFIG_EMBTK_64BITS_FS), \ + cp -d $(embtk_tools)/$(STRICT_GNU_TARGET)/lib64/*.so* \ + $(embtk_sysroot)/lib/ &&) \ + $(if $(CONFIG_EMBTK_64BITS_FS_COMPAT32), \ + cp -d $(embtk_tools)/$(STRICT_GNU_TARGET)/lib32/*.so* \ + $(embtk_sysroot)/lib32/ &&) \ + $(if $(CONFIG_EMBTK_64BITS_FS), \ + $(if $(CONFIG_EMBTK_CLIB_UCLIBC), \ + cd $(embtk_sysroot)/lib/; \ + ln -sf ld-uClibc.so.0 ld64-uClibc.so.0 &&)) \ + touch $(GCC2_BUILD_DIR)/.gcc.embtk.postinstall) +endef +define embtk_postinstall_gcc2 + $(if $(CONFIG_EMBTK_LLVM_ONLY_TOOLCHAIN), + [ -e $(GCC2_BUILD_DIR)/.gcc.embtk.postinstall ] || \ + $(__embtk_postinstall_gcc2),true) +endef + # # GCC last stage # |