From 2f0a742e78b4ae50703bde72f5dff3952ffc13fb Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Wed, 13 Jul 2011 23:49:22 +0200 Subject: 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. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.1