gcc: limit postinst and postrm only with INCLUDE_STATIC_LINK_SPEC
Limit postinst and postrm only with INCLUDE_STATIC_LINK_SPEC enabled as it's only needed to install and remove the generated spec file. Also remove extra tab from scripts. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
399c1a467d
commit
dd0de22a35
1 changed files with 8 additions and 4 deletions
|
@ -234,14 +234,18 @@ define Package/gcc/install
|
||||||
chmod +x $(1)/usr/bin/gcc_env.sh
|
chmod +x $(1)/usr/bin/gcc_env.sh
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_INCLUDE_STATIC_LINK_SPEC),y)
|
||||||
define Package/gcc/postinst
|
define Package/gcc/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
$(INSTALL_STATIC_SPEC)
|
$(INSTALL_STATIC_SPEC)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gcc/postrm
|
define Package/gcc/postrm
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
$(REMOVE_STATIC_SPEC)
|
$(REMOVE_STATIC_SPEC)
|
||||||
endef
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(call BuildPackage,gcc))
|
$(eval $(call BuildPackage,gcc))
|
||||||
|
|
Loading…
Reference in a new issue