summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-07 01:32:17 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:44:40 +0100
commit2109bf0515962997a6f8002a6a6e5124ce61a60b (patch)
treeb5a90e3ffb310c401059430c16bcc49c3b047037 /source4/lib
parent575678557b11d2ac344eaee6319b975d010de157 (diff)
downloadsamba-2109bf0515962997a6f8002a6a6e5124ce61a60b.tar.gz
samba-2109bf0515962997a6f8002a6a6e5124ce61a60b.tar.bz2
samba-2109bf0515962997a6f8002a6a6e5124ce61a60b.zip
r25886: Try to fix building dso's on hpux with gcc
(This used to be commit 146c5226e61235a55155ef4493191a6c5eddea3f)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/replace/libreplace_ld.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/replace/libreplace_ld.m4 b/source4/lib/replace/libreplace_ld.m4
index 8147e692ec..fd85ef9fc4 100644
--- a/source4/lib/replace/libreplace_ld.m4
+++ b/source4/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"