Skip to content

Commit

Permalink
better install script for gcc 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michalliu committed Mar 26, 2015
1 parent e955301 commit 1a9cb64
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions devel/gcc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,18 @@ define Package/gcc/install
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
if [ -f $(PKG_INSTALL_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gccgo ];then \
if [ "$(CONFIG_PACKAGE_gcc_go_lang)" = "y" ];then \
cp -a $(PKG_INSTALL_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gccgo $(1)/usr/bin;\
ln -s $(REAL_GNU_TARGET_NAME)-gccgo $(1)/usr/bin/gccgo;\
cp -ar $(PKG_INSTALL_DIR)/usr/lib/go $(1)/usr/lib/;\
$(RM) $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)/libgo.so*;\
cp -ar $(PKG_INSTALL_DIR)/usr/lib/libgo*.a $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION);\
cp -ar $(PKG_INSTALL_DIR)/usr/lib/libgo.so* $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION);\
fi
ln -s $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)/libc.so $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)/libc.so.6
if [ "$(CONFIG_PACKAGE_gcc_version_5_0_0)" = "y" ];then \
ln -s $(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)/libc.so \
$(1)/usr/lib/$(PKG_NAME)/$(REAL_GNU_TARGET_NAME)/$(PKG_VERSION)/libc.so.6 ;\
fi
endef

$(eval $(call BuildPackage,gcc))

0 comments on commit 1a9cb64

Please sign in to comment.