summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrond Norbye <trond.norbye@gmail.com>2011-07-13 23:49:22 +0200
committerTrond Norbye <trond.norbye@gmail.com>2011-07-13 23:49:22 +0200
commit2f0a742e78b4ae50703bde72f5dff3952ffc13fb (patch)
tree247d5cdc423dfa96ced28e753e23975d180e5309
parent03c822e5f9141cb24c3fe00fab3d81683eed0ca5 (diff)
downloadmemcached-2f0a742e78b4ae50703bde72f5dff3952ffc13fb.tar.gz
Issue 121: Set the runtime path when --with-libevent is used
Without a runtime path we're failing to run the programs we're building as part of configure, and memcached won't find the library during startup.
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2a1b703..dc2e572 100644
--- a/configure.ac
+++ b/configure.ac
@@ -235,6 +235,10 @@ AC_CACHE_CHECK([for libevent directory], ac_cv_libevent_dir, [
if test $libevent_linked = yes; then
if test ! -z "$ledir" ; then
ac_cv_libevent_dir=$ledir
+ AS_IF(test "$SUNCC" = "yes",
+ [saved_LDFLAGS="$saved_LDFLAGS -Wl,-R$ledir/lib"])
+ AS_IF(test "$GCC" = "yes",
+ [saved_LDFLAGS="$saved_LDFLAGS -Wl,-rpath=$ledir/lib"])
else
ac_cv_libevent_dir="(system)"
fi