diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
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 |