memcached: libevent fixes
authorJohn Crispin <john@openwrt.org>
Fri, 3 Aug 2012 09:15:20 +0000 (09:15 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 3 Aug 2012 09:15:20 +0000 (09:15 +0000)
SVN-Revision: 32954

net/memcached/Makefile

index 922e3d166b4340bb7bc34ca7ee27c385ac863800..5b38379aa1b8d418bd8faed1cccb3bc39281f089 100644 (file)
@@ -23,7 +23,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/memcached
   SECTION:=net
   CATEGORY:=Network
-  DEPENDS:=+libevent2 +libpthread
+  DEPENDS:=+libevent +libpthread
   TITLE:=The high-performance, distributed memory object caching system
   MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
   URL:=http://memcached.org/
@@ -44,6 +44,7 @@ CONFIGURE_VARS += ac_cv_c_endian=little
 endif
 
 CONFIGURE_ARGS += \
+       --with-libevent=$(STAGING_DIR)/usr/include/libevent \
        --disable-docs \
        --disable-dtrace \
        --disable-coverage \
@@ -52,6 +53,9 @@ CONFIGURE_ARGS += \
 TARGET_CFLAGS += \
        -std=gnu99
 
+TARGET_LDFLAGS += \
+       -L$(STAGING_DIR)/usr/lib/libevent
+
 define Package/memcached/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/memcached $(1)/usr/bin/