summaryrefslogtreecommitdiff
path: root/source3/lib/replace
diff options
context:
space:
mode:
authorjelmer <jelmer@0c0555d6-39d7-0310-84fc-f1cc0bd64818>2007-11-07 01:32:17 +0000
committerStefan Metzmacher <metze@samba.org>2007-11-09 09:31:26 +0100
commit745b458cee8663bf3113f5981cbcdd8c84d99a3c (patch)
tree10f427d2139f356e1d7024a5334f320dd6085477 /source3/lib/replace
parent2c50c6143b5adec4067ebcc81e2d40b47d00cde9 (diff)
downloadsamba-745b458cee8663bf3113f5981cbcdd8c84d99a3c.tar.gz
samba-745b458cee8663bf3113f5981cbcdd8c84d99a3c.tar.bz2
samba-745b458cee8663bf3113f5981cbcdd8c84d99a3c.zip
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)
Diffstat (limited to 'source3/lib/replace')
-rw-r--r--source3/lib/replace/libreplace_ld.m46
1 files changed, 5 insertions, 1 deletions
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"