summaryrefslogtreecommitdiff
path: root/source4/build/m4/check_ld.m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-11-06 16:23:18 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:44:36 +0100
commit414e5eca2e1495916f4a52789a6bee63d2f1ab6d (patch)
treebc04e8823933a0b799ef2e8d8fac4e345582acd2 /source4/build/m4/check_ld.m4
parenta73cfa950afe7ccf5625e044070815846f5612ae (diff)
downloadsamba-414e5eca2e1495916f4a52789a6bee63d2f1ab6d.tar.gz
samba-414e5eca2e1495916f4a52789a6bee63d2f1ab6d.tar.bz2
samba-414e5eca2e1495916f4a52789a6bee63d2f1ab6d.zip
r25877: Add libreplace macro for soname flags.
(This used to be commit 25aa875119622679881cd0e1b3b9dff8d2cf03ee)
Diffstat (limited to 'source4/build/m4/check_ld.m4')
-rw-r--r--source4/build/m4/check_ld.m414
1 files changed, 1 insertions, 13 deletions
diff --git a/source4/build/m4/check_ld.m4 b/source4/build/m4/check_ld.m4
index de80394b08..15af978dc9 100644
--- a/source4/build/m4/check_ld.m4
+++ b/source4/build/m4/check_ld.m4
@@ -19,7 +19,6 @@ AC_SUBST(LD)
AC_SUBST(LDFLAGS)
AC_SUBST(SHLD)
AC_SUBST(SHLD_UNDEF_FLAGS)
-AC_SUBST(SONAMEFLAG)
# Assume non-shared by default and override below
# these are the defaults, good for lots of systems
@@ -28,7 +27,6 @@ STLD_FLAGS="-rcs"
BLDSHARED="false"
LD="${CC}"
SHLD="${CC}"
-SONAMEFLAG=""
PICFLAG=""
# allow for --with-hostld=gcc
@@ -50,13 +48,10 @@ case "$host_os" in
BLDSHARED="true"
SHLD_UNDEF_FLAGS="-Wl,--allow-shlib-undefined"
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
- SONAMEFLAG="-Wl,-soname="
;;
*solaris*)
BLDSHARED="true"
- SONAMEFLAG="-h "
if test "${GCC}" = "yes"; then
- SONAMEFLAG="-Wl,-soname="
if test "${ac_cv_prog_gnu_ld}" = "yes"; then
LDFLAGS="$LDFLAGS -Wl,-E"
fi
@@ -64,21 +59,17 @@ case "$host_os" in
;;
*sunos*)
BLDSHARED="true"
- SONAMEFLAG="-Wl,-h,"
;;
*netbsd* | *freebsd* | *dragonfly* )
BLDSHARED="true"
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
- SONAMEFLAG="-Wl,-soname,"
;;
*openbsd*)
BLDSHARED="true"
LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
- SONAMEFLAG="-Wl,-soname,"
;;
*irix*)
BLDSHARED="true"
- SONAMEFLAG="-soname "
SHLD="${PROG_LD}"
;;
*aix*)
@@ -88,8 +79,6 @@ case "$host_os" in
*hpux*)
# Use special PIC flags for the native HP-UX compiler.
if test $ac_cv_prog_cc_Ae = yes; then
- SONAMEFLAG="-Wl,+h "
- elif test "${GCC}" = "yes"; then
fi
BLDSHARED="true" # I hope this is correct
if test "$host_cpu" = "ia64"; then
@@ -100,11 +89,9 @@ case "$host_os" in
;;
*osf*)
BLDSHARED="true"
- SONAMEFLAG="-Wl,-soname,"
;;
*unixware*)
BLDSHARED="true"
- SONAMEFLAG="-Wl,-soname,"
;;
*darwin*)
BLDSHARED="true"
@@ -129,6 +116,7 @@ AC_LD_PICFLAG
AC_LD_EXPORT_DYNAMIC
AC_LD_SHLDFLAGS
AC_LD_SHLIBEXT
+AC_LD_SONAMEFLAG
AC_ARG_ENABLE(shared,
[ --disable-shared Disable testing for building shared libraries],