commit ed6e69f86006eb2c4ace4ce7b8583dfedffa7008
parent a140e60409ada6cd7cca2617849f2a3dec99d517
Author: Steven Barth <steven@midlink.org>
Date: Thu, 8 Jan 2015 07:15:04 +0100
Merge pull request #750 from bk138/gcc-include-libgcc-a
GCC: include libgcc.a
Diffstat:
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/devel/gcc/Makefile b/devel/gcc/Makefile
@@ -110,6 +110,7 @@ define Package/gcc/install
cp -ar $(TOOLCHAIN_DIR)/include $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)
cp -a $(TOOLCHAIN_DIR)/lib/*.{o,so*} $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)
cp -a $(TOOLCHAIN_DIR)/lib/*nonshared*.a $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)
+ grep "GROUP.*-lgcc" $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)/libgcc_s.so && cp -a $(PKG_INSTALL_DIR)/usr/lib/gcc/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)/libgcc.a $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)/ ; true
endef
$(eval $(call BuildPackage,gcc))
diff --git a/devel/gcc/README b/devel/gcc/README
@@ -1,8 +1,10 @@
Native GCC that runs on target.
To save disk space, this GCC only supports dynamic linking on the target box,
-there are no static libraries shipped.
+there are no static libraries shipped except libgcc.a on those architectures
+that need it.
-For now, this was only tested on a mips target. Others to be done...
+For now, this was only tested on arm (EABI) and mips targets. Others to be
+done...
- Christian Beier <cb@shoutrlabs.com>
-\ No newline at end of file
+ Christian Beier <cb@shoutrlabs.com>