Skip to content

Commit

Permalink
Gcc on Solaris sparc wants -R and not -rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
trondn committed Jul 15, 2011
1 parent 2f0a742 commit 3eb5995
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3eb5995

Please sign in to comment.