mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-08 12:01:21 +02:00
23697: use -rdynamic where it seems to be available, not based on the value of $host.
This commit is contained in:
parent
4fab17e62a
commit
6850c625e2
2 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue