summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"