From 1a7de36186cd7eef44780bd4c1f52fb3b935a937 Mon Sep 17 00:00:00 2001 From: "harald.geyer@gmx.at" Date: Wed, 7 Jan 2015 12:53:28 +0100 Subject: [PATCH 1/2] gcc: Include libgcc.a on those architectures that need it Right now these are arm, hppa, microblaze, powerpc, sh and xtensa. So we just try to grep for it to figure out if it is needed. Signed-off-by: Harald Geyer Signed-off-by: Christian Beier --- devel/gcc/Makefile | 1 + devel/gcc/README | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/devel/gcc/Makefile b/devel/gcc/Makefile index c8d87335e..9cdde88dd 100644 --- 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 index 6cbc80d2b..3dd94eb17 100644 --- a/devel/gcc/README +++ b/devel/gcc/README @@ -1,8 +1,9 @@ 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... - Christian Beier \ No newline at end of file + Christian Beier From 389940cab09b611c9beaeb6fc1ff8b7971cb2873 Mon Sep 17 00:00:00 2001 From: "harald.geyer@gmx.at" Date: Wed, 7 Jan 2015 13:48:46 +0100 Subject: [PATCH 2/2] gcc: Update README: tested on arm (imx233-olinuxino) board Signed-off-by: Harald Geyer Signed-off-by: Christian Beier --- devel/gcc/README | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devel/gcc/README b/devel/gcc/README index 3dd94eb17..58db4740c 100644 --- a/devel/gcc/README +++ b/devel/gcc/README @@ -4,6 +4,7 @@ To save disk space, this GCC only supports dynamic linking on the target box, 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