diff options
author | Trond Norbye <trond.norbye@gmail.com> | 2011-07-15 07:27:52 +0200 |
---|---|---|
committer | Trond Norbye <trond.norbye@gmail.com> | 2011-07-15 07:27:52 +0200 |
commit | 3eb599528b1d593bbf1decccd6f8cb0225312306 (patch) | |
tree | 586aa3a31a37b67f83acc9d64bd26ce7cf4695cf /configure.ac | |
parent | 2f0a742e78b4ae50703bde72f5dff3952ffc13fb (diff) | |
download | memcached-3eb599528b1d593bbf1decccd6f8cb0225312306.tar.gz |
Gcc on Solaris sparc wants -R and not -rpath1.4.6
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index dc2e572..8750446 100644 --- a/configure.ac +++ b/configure.ac @@ -235,10 +235,11 @@ 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"]) + _myos=`echo $target_os | cut -f 1 -d .` + AS_IF(test "$SUNCC" = "yes" -o "x$_myos" = "xsolaris2", + [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 |