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 <[email protected]> --- libs/libevent2/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/libevent2/Makefile b/libs/libevent2/Makefile index 6271f23..ce39e1a 100644 --- a/libs/libevent2/Makefile +++ b/libs/libevent2/Makefile @@ -45,6 +45,7 @@ endef define Package/libevent2 $(call Package/libevent2/Default) TITLE+= library (version 2.0) + DEPENDS:=+USE_EGLIBC:librt endef define Package/libevent2/description -- 1.7.10 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
