Well, actually, I have a working combination of memcached 1.4.24 and libevent 2.0.22-stable. But, it's very dirty at the moment. I'll eventually release it in Github.
Anyway, these are what you need to do to make memcached linked into statically built libevent:
- Place libevent source code inside memcached root directory (the next steps assumes you placed libevent source code inside memcached root directory).
- Make the libevent code statically built by using LT_INIT([disable-shared]) in its configure.ac
- Make memcached only link to libevent_core.la in memcached Makefile.am. Nothing more than that, because that's all it needs.
- Add AC_CONFIG_SUBDIRS([your_libevent_dir]) to memcached configure.ac.
- Disable/remove support for dynamically-linked libevent from memcached configure.ac.
- In my particular memcached version, I need to modify memcached.h to add two additional libevent include files to make it compile-able, i.e. event_struct.h and event_compat.h.
Post a Comment
No comments:
Post a Comment