diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2001-09-13 18:47:02 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-09-13 18:47:02 +0000 |
| commit | 2c8fa27f6f3fc1ffc63ca98193f8713d0fe17da7 (patch) | |
| tree | e953697b24001ba70be4710618fa896e19817265 | |
| parent | + Changed addhistnum() to return firsthist()-1 or curhist+1 on error. (diff) | |
| download | zsh-2c8fa27f6f3fc1ffc63ca98193f8713d0fe17da7.tar zsh-2c8fa27f6f3fc1ffc63ca98193f8713d0fe17da7.tar.gz zsh-2c8fa27f6f3fc1ffc63ca98193f8713d0fe17da7.tar.bz2 zsh-2c8fa27f6f3fc1ffc63ca98193f8713d0fe17da7.tar.lz zsh-2c8fa27f6f3fc1ffc63ca98193f8713d0fe17da7.tar.xz zsh-2c8fa27f6f3fc1ffc63ca98193f8713d0fe17da7.tar.zst zsh-2c8fa27f6f3fc1ffc63ca98193f8713d0fe17da7.zip | |
David Lebel: Shared object linkage on OpenBSD.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | zshconfig.ac | 29 |
2 files changed, 32 insertions, 2 deletions
@@ -27,6 +27,11 @@ * 15772: Src/Modules/tcp.c: add -t (test) for ztcp. +2001-09-09 Bart Schaefer <schaefer@zsh.org> + + * David Lebel: 15742: zshconfig.ac: Shared object linkage on + OpenBSD. + 2001-09-09 Clint Adams <clint@zsh.org> * 15770: Src/Modules/tcp.c, Src/Modules/tcp.h: diff --git a/zshconfig.ac b/zshconfig.ac index 92afdb1ca..c01421c41 100644 --- a/zshconfig.ac +++ b/zshconfig.ac @@ -1612,7 +1612,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}" ;; * ) @@ -1638,11 +1645,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 |
