mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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 <harald@ccbib.org> Signed-off-by: Christian Beier <dontmind@freeshell.org>
This commit is contained in:
committed by
Christian Beier
parent
3e3fa470f8
commit
1a7de36186
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user