diff options
Diffstat (limited to 'mk/gcc.mk')
-rw-r--r-- | mk/gcc.mk | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -68,20 +68,20 @@ define embtk_install_gcc3 endef define __embtk_postinstall_libgcc - $(if $(CONFIG_EMBTK_32BITS_FS), \ - cp -d $(embtk_tools)/$(STRICT_GNU_TARGET)/lib/*.so* \ - $(embtk_sysroot)/lib/ && \ - cp $(embtk_tools)/$(STRICT_GNU_TARGET)/lib/*.a \ - $(embtk_sysroot)/usr/lib/ 2>/dev/null || true) \ - $(if $(CONFIG_EMBTK_64BITS_FS), \ - cp -d $(embtk_tools)/$(STRICT_GNU_TARGET)/lib64/*.so* \ - $(embtk_sysroot)/lib/ && \ - cp $(embtk_tools)/$(STRICT_GNU_TARGET)/lib64/*.a \ - $(embtk_sysroot)/usr/lib/ 2>/dev/null || true) \ - $(if $(CONFIG_EMBTK_64BITS_FS_COMPAT32), \ - cp -d $(embtk_tools)/$(STRICT_GNU_TARGET)/lib32/*.so* \ - $(embtk_sysroot)/lib32/ && \ - cp $(embtk_tools)/$(STRICT_GNU_TARGET)/lib32/*.a \ + $(if $(CONFIG_EMBTK_32BITS_FS), \ + (cd $(embtk_tools)/$(STRICT_GNU_TARGET)/lib/ && tar -cf - *.so*) \ + | tar -xf - -C $(embtk_sysroot)/lib/ && \ + cp $(embtk_tools)/$(STRICT_GNU_TARGET)/lib/*.a \ + $(embtk_sysroot)/usr/lib/ 2>/dev/null || true) \ + $(if $(CONFIG_EMBTK_64BITS_FS), \ + (cd $(embtk_tools)/$(STRICT_GNU_TARGET)/lib64/ && tar -cf - *.so*) \ + | tar -xf - -C $(embtk_sysroot)/lib/ && \ + cp $(embtk_tools)/$(STRICT_GNU_TARGET)/lib64/*.a \ + $(embtk_sysroot)/usr/lib/ 2>/dev/null || true) \ + $(if $(CONFIG_EMBTK_64BITS_FS_COMPAT32), \ + (cd $(embtk_tools)/$(STRICT_GNU_TARGET)/lib32/ && tar -cf - *.so*) \ + | tar -xf - -C $(embtk_sysroot)/lib32/ && \ + cp $(embtk_tools)/$(STRICT_GNU_TARGET)/lib32/*.a \ $(embtk_sysroot)/usr/lib32/ 2>/dev/null || true) endef |