summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-02-28 09:35:45 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-02-28 09:35:45 +0100
commit62c50a2ab0b42b836cfbf4c649cf676fe6254725 (patch)
treeb3b7c3df507e4de293b5af54652dc3a6eed937d4
parent8235f794e74f3325317d2c362d53522cc3ba9390 (diff)
libevent: update to latest, fix static linking
-rw-r--r--package/libevent/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/libevent/Makefile b/package/libevent/Makefile
index cf271dbcf..b5d932834 100644
--- a/package/libevent/Makefile
+++ b/package/libevent/Makefile
@@ -4,13 +4,13 @@
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= libevent
-PKG_VERSION:= 2.0.21
+PKG_VERSION:= 2.0.22
PKG_RELEASE:= 1
-PKG_HASH:= 22a530a8a5ba1cb9c080cba033206b17dacd21437762155c6d30ee6469f574f5
+PKG_HASH:= 71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3
PKG_DESCR:= event notification library for event-driven network servers
PKG_SECTION:= libs/net
PKG_URL:= http://libevent.org/
-PKG_SITES:= https://github.com/downloads/libevent/libevent/
+PKG_SITES:= https://github.com/libevent/libevent/releases/download/release-$(PKG_VERSION)-stable/
PKG_OPTS:= dev
DISTFILES:= $(PKG_NAME)-$(PKG_VERSION)-stable.tar.gz
@@ -20,6 +20,8 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBEVENT,libevent,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+MAKE_FLAGS+= LDFLAGS="$(TARGET_LDFLAGS) -all-static"
+
libevent-install:
$(INSTALL_DIR) $(IDIR_LIBEVENT)/usr/lib
$(CP) $(WRKINST)/usr/lib/libevent*.so* $(IDIR_LIBEVENT)/usr/lib