From 1999a57b6f0bd8eb58d4e7a13408397bdc715ea9 Mon Sep 17 00:00:00 2001 From: jow Date: Wed, 19 Sep 2012 15:30:40 +0000 Subject: [include] make packages depend on +librt and +libpthread by default if eglibc is in use git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33480 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/package-defaults.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/package-defaults.mk b/include/package-defaults.mk index c3496767c..37f814da8 100644 --- a/include/package-defaults.mk +++ b/include/package-defaults.mk @@ -5,8 +5,10 @@ # See /LICENSE for more information. # +PKG_DEFAULT_DEPENDS = +libc +USE_EGLIBC:librt +USE_EGLIBC:libpthread + ifneq ($(PKG_NAME),toolchain) - PKG_FIXUP_DEPENDS = $(if $(filter kmod-%,$(1)),$(2),+libc $(filter-out +libc,$(2))) + PKG_FIXUP_DEPENDS = $(if $(filter kmod-%,$(1)),$(2),$(PKG_DEFAULT_DEPENDS) $(filter-out $(PKG_DEFAULT_DEPENDS),$(2))) else PKG_FIXUP_DEPENDS = $(2) endif -- cgit v1.2.3