瀏覽代碼

make packages depend on +librt and +libpthread by default if eglibc is in use

SVN-Revision: 33480
Jo-Philipp Wich 13 年之前
父節點
當前提交
b06f4dc972
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      include/package-defaults.mk

+ 3 - 1
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