From 867f40c7791f526d1fa975a4f86ebca926983b26 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 12 Mar 2004 16:29:30 +0000 Subject: 19616: use correct linker options for shared libs with gcc on HP/UX --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 18ff78262..b47111194 100644 --- a/configure.ac +++ b/configure.ac @@ -2007,18 +2007,21 @@ char *argv[]; fi if test -n "$GCC"; then case "$host_os" in + hpux*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;; darwin*) DLCFLAGS="${DLCFLAGS=-fno-common}" ;; *) DLCFLAGS="${DLCFLAGS=-fPIC}" ;; esac else case "$host_os" in - hpux*) DLCFLAGS="${DLCFLAGS=+z}" ;; + hpux*) + DLCFLAGS="${DLCFLAGS=+z}" + DLLDFLAGS="${DLLDFLAGS=-b}" + ;; sunos*) DLCFLAGS="${DLCFLAGS=-pic}" ;; solaris*|sysv4*|esix*) DLCFLAGS="${DLCFLAGS=-KPIC}" ;; esac fi case "$host_os" in - hpux*) DLLDFLAGS="${DLLDFLAGS=-b}" ;; freebsd*|linux*|irix*|osf*|gnu*) DLLDFLAGS="${DLLDFLAGS=-shared}" ;; sunos*) DLLDFLAGS="${DLLDFLAGS=-assert nodefinitions}" ;; sysv4*|esix*) DLLDFLAGS="${DLLDFLAGS=-G $ldflags}" ;; -- cgit 1.4.1