build: add a dependency on libc to all non-kernel packages
authorFelix Fietkau <nbd@openwrt.org>
Sun, 10 Jun 2012 20:27:37 +0000 (20:27 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 10 Jun 2012 20:27:37 +0000 (20:27 +0000)
SVN-Revision: 32171

include/package-defaults.mk
include/package-dumpinfo.mk

index 75442925f1f391c75b2c828be2011e97bce67a96..c3496767cf7fd53f8a837276c23e95f6b6913234 100644 (file)
@@ -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
index a297f2336ea7f4f8e81e009e9609797decad73a2..2bf78c3f184b7fe338ef9f3ddff0eb7119c1e80d 100644 (file)
@@ -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)