From 3485d682d421285e935c8fc97e7ad1fb5728f5d4 Mon Sep 17 00:00:00 2001 From: mirko Date: Mon, 6 Aug 2012 11:06:54 +0000 Subject: [PATCH] When openwrt toolchain uses eglibc (2.15) instead of uclibc, libevent2 build fails to following error: Package libevent2 is missing dependencies for the following libraries: librt.so.1 Fix is to define DEPENDS:=+USE_EGLIBC:librt which adds the librt dependency only if the eglibc is used by toolchain. Patch has been tested by building the libevent2 both with the the eglibc and uclibc openwrt toolchains. Signed-off-by: Mika Laitio git-svn-id: svn://svn.openwrt.org/openwrt/packages@33007 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/libevent2/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/libevent2/Makefile b/libs/libevent2/Makefile index 6271f236e..8e628b87b 100644 --- a/libs/libevent2/Makefile +++ b/libs/libevent2/Makefile @@ -28,6 +28,7 @@ define Package/libevent2/Default CATEGORY:=Libraries TITLE:=Event notification URL:=http://www.monkey.org/~provos/libevent/ + DEPENDS:=+USE_EGLIBC:librt endef define Package/libevent2/Default/description @@ -81,7 +82,7 @@ endef define Package/libevent2-openssl $(call Package/libevent2/Default) TITLE+= OpenSSL library (version 2.0) - DEPENDS:=+libopenssl + DEPENDS+=+libopenssl endef define Package/libevent2-openssl/description @@ -94,7 +95,7 @@ endef define Package/libevent2-pthreads $(call Package/libevent2/Default) TITLE+= Pthreads library (version 2.0) - DEPENDS:=+libpthread + DEPENDS+=+libpthread endef define Package/libevent2-pthreads/description -- 2.11.0