1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 17:24:50 +01:00

David Lebel: Shared object linkage on OpenBSD.

This commit is contained in:
Bart Schaefer 2001-09-09 16:37:03 +00:00
parent b000083cf4
commit 7670eee717
2 changed files with 32 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2001-09-09 Bart Schaefer <schaefer@brasslantern.com>
* David Lebel: 15742: zshconfig.ac: Shared object linkage on
OpenBSD.
2001-09-09 Geoff Wing <gcw@zsh.org>
* 15621: Src/Zle/zle_refresh.c: display of status line was being

View file

@ -1602,7 +1602,14 @@ char *argv[];
else
case "$host" in
*openbsd*)
DLLD="${DLLD=$CC}"
case "$host_os" in
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
DLLD="${DLLD=ld}"
;;
*)
DLLD="${DLLD=$CC}"
;;
esac
DLLDARG="${LDARG}"
;;
* )
@ -1628,11 +1635,29 @@ char *argv[];
netbsd*) DLLDFLAGS="${DLLDFLAGS=${DLLDARG}-x -shared --whole-archive}" ;;
aix*) DLLDFLAGS="${DLLDFLAGS=-G -bexpall -lc}" ;;
solaris*|sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G}" ;;
openbsd*) DLLDFLAGS="${DLLDFLAGS=-shared -fPIC}" ;;
openbsd*)
if test $zsh_cv_sys_elf = yes; then
DLLDFLAGS="${DLLDFLAGS=-shared -fPIC}"
else
case "$host_os" in
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
DLLDFLAGS="${DLLDFLAGS=-Bshareable}"
;;
*)
DLLDFLAGS="${DLLDFLAGS=-shared -fPIC}"
;;
esac
fi
;;
esac
case "$host" in
*-hpux*) EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}" ;;
*-freebsd[3-9]*|*-linux*) EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-rdynamic}" ;;
*openbsd*)
if test $zsh_cv_sys_elf = yes; then
EXTRA_LDFLAGS="${EXTRA_LDFLAGS=-Wl,-E}"
fi
;;
mips-sni-sysv4)
#
# unfortunately, we have different compilers