build: add a dependency on libc to all non-kernel packages

SVN-Revision: 32171
This commit is contained in:
Felix Fietkau 2012-06-10 20:27:37 +00:00
parent 9fe1b02ddf
commit edee850e18
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,12 @@
# See /LICENSE for more information. # See /LICENSE for more information.
# #
ifneq ($(PKG_NAME),toolchain)
PKG_FIXUP_DEPENDS = $(if $(filter kmod-%,$(1)),$(2),+libc $(filter-out +libc,$(2)))
else
PKG_FIXUP_DEPENDS = $(2)
endif
define Package/Default define Package/Default
CONFIGFILE:= CONFIGFILE:=
SECTION:=opt SECTION:=opt

View File

@ -30,7 +30,7 @@ $(if $(MENU),Menu: $(MENU)
)$(if $(DEFAULT),Default: $(DEFAULT) )$(if $(DEFAULT),Default: $(DEFAULT)
)$(if $(findstring $(PREREQ_CHECK),1),Prereq-Check: 1 )$(if $(findstring $(PREREQ_CHECK),1),Prereq-Check: 1
)Version: $(VERSION) )Version: $(VERSION)
Depends: $(DEPENDS) Depends: $(call PKG_FIXUP_DEPENDS,$(1),$(DEPENDS))
Menu-Depends: $(MDEPENDS) Menu-Depends: $(MDEPENDS)
Provides: $(PROVIDES) Provides: $(PROVIDES)
$(if $(VARIANT),Build-Variant: $(VARIANT) $(if $(VARIANT),Build-Variant: $(VARIANT)