From 745b458cee8663bf3113f5981cbcdd8c84d99a3c Mon Sep 17 00:00:00 2001 From: jelmer Date: Wed, 7 Nov 2007 01:32:17 +0000 Subject: Try to fix building dso's on hpux with gcc git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25886 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 4642af8026f086488672a51a0ecce2603e65f4ce) --- source3/lib/replace/libreplace_ld.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/lib/replace/libreplace_ld.m4') diff --git a/source3/lib/replace/libreplace_ld.m4 b/source3/lib/replace/libreplace_ld.m4 index 8147e692ec..fd85ef9fc4 100644 --- a/source3/lib/replace/libreplace_ld.m4 +++ b/source3/lib/replace/libreplace_ld.m4 @@ -98,7 +98,11 @@ AC_DEFUN([AC_LD_SHLDFLAGS], SHLD_FLAGS="-Wl,-G,-bexpall,-bbigtoc" ;; *hpux*) - SHLD_FLAGS="-b -Wl,-B,symbolic,-b,-z" + if test "${GCC}" = "yes"; then + SHLD_FLAGS="-shared" + else + SHLD_FLAGS="-b" + fi ;; *darwin*) SHLD_FLAGS="-dynamiclib" -- cgit