summaryrefslogtreecommitdiff
path: root/source3/lib/replace/libreplace_ld.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/replace/libreplace_ld.m4')
-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"