diff options
author | Trond Norbye <trond.norbye@gmail.com> | 2011-07-13 23:49:22 +0200 |
---|---|---|
committer | Trond Norbye <trond.norbye@gmail.com> | 2011-07-13 23:49:22 +0200 |
commit | 2f0a742e78b4ae50703bde72f5dff3952ffc13fb (patch) | |
tree | 247d5cdc423dfa96ced28e753e23975d180e5309 | |
parent | 03c822e5f9141cb24c3fe00fab3d81683eed0ca5 (diff) | |
download | memcached-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.ac | 4 |
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 |