1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

Move system-specific ldflags checks to libreplace so they can be used by ldb.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25851 0c0555d6-39d7-0310-84fc-f1cc0bd64818
This commit is contained in:
jelmer 2007-11-06 02:17:05 +00:00 committed by Stefan Metzmacher
parent 48c70f6040
commit 63b7690335

View File

@ -63,3 +63,41 @@ case "$host_os" in
esac
AC_SUBST(PICFLAG)
])
AC_DEFUN([AC_LD_SHLDFLAGS],
[
SHLD_FLAGS="-shared"
case "$host_os" in
*linux*)
SHLD_FLAGS="-shared -Wl,-Bsymbolic"
;;
*solaris*)
SHLD_FLAGS="-G"
if test "${GCC}" = "no"; then
## ${CFLAGS} added for building 64-bit shared
## libs using Sun's Compiler
SHLD_FLAGS="-G \${CFLAGS}"
fi
;;
*sunos*)
SHLD_FLAGS="-G"
;;
*irix*)
SHLD_FLAGS="-set_version sgi1.0 -shared"
;;
*aix*)
SHLD_FLAGS="-Wl,-G,-bexpall,-bbigtoc"
;;
*hpux*)
if test $ac_cv_prog_cc_Ae = yes; then
SHLD_FLAGS="-b -Wl,-B,symbolic,-b,-z"
fi
;;
*darwin*)
SHLD_FLAGS="-bundle -flat_namespace -undefined suppress"
;;
esac
AC_SUBST(SHLD_FLAGS)
])