浏览代码

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

SVN-Revision: 32171
Felix Fietkau 13 年之前
父节点
当前提交
edee850e18
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 6 0
      include/package-defaults.mk
  2. 1 1
      include/package-dumpinfo.mk

+ 6 - 0
include/package-defaults.mk

@@ -5,6 +5,12 @@
 # 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
   CONFIGFILE:=
   SECTION:=opt

+ 1 - 1
include/package-dumpinfo.mk

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