diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.ac | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index b47e6643f..ee861b044 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-25 Clint Adams <clint@zsh.org> + + * 23697: configure.ac: use -rdynamic where it seems to be + available, not based on the value of $host. + 2007-07-25 Peter Stephenson <pws@csr.com> * 23696: Src/params.c, Test/D04parameter.ztst: assignment diff --git a/configure.ac b/configure.ac index a3556d103..b3ebfe339 100644 --- a/configure.ac +++ b/configure.ac @@ -2325,7 +2325,6 @@ char *argv[]; esac case "$host" in *-hpux*) EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}" ;; - *-freebsd[3-9]*|*-kfreebsd*|*-linux*|gnu*) EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-rdynamic}" ;; *openbsd*) if test x$zsh_cv_sys_elf = xyes; then EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}" @@ -2351,6 +2350,13 @@ char *argv[]; esac ;; esac +AC_CACHE_CHECK(if we can use -rdynamic, zsh_cv_rdynamic_available, +old_LDFLAGS="$LDFLAGS" +LDFLAGS="$LDFLAGS -rdynamic" +AC_TRY_LINK([], [], [zsh_cv_rdynamic_available=yes +EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-rdynamic}"], +[zsh_cvs_rdynamic_available=no]) +LDFLAGS="$old_LDFLAGS") AC_CACHE_CHECK(if your dlsym() needs a leading underscore, zsh_cv_func_dlsym_needs_underscore, [echo failed >conftestval && cat >conftest.c <<EOM |