r25989: build: use AC_LIBREPLACE_SHLD
authorStefan Metzmacher <metze@samba.org>
Fri, 16 Nov 2007 09:15:26 +0000 (10:15 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:45:30 +0000 (05:45 +0100)
metze
(This used to be commit 54f0ad64a611695ca6d8bfd643f3846021bac637)

source4/build/m4/check_ld.m4

index ffbda0466a8f4934f45930888081424002abd188..c53cf5465b1065c4ad4298316322ded56f5d8260 100644 (file)
@@ -17,7 +17,6 @@ AC_SUBST(STLD_FLAGS)
 AC_SUBST(BLDSHARED)
 AC_SUBST(LD)
 AC_SUBST(LDFLAGS)
-AC_SUBST(SHLD)
 
 # Assume non-shared by default and override below
 # these are the defaults, good for lots of systems
@@ -25,7 +24,6 @@ STLD=${PROG_AR}
 STLD_FLAGS="-rcs"
 BLDSHARED="false"
 LD="${CC}"
-SHLD="${CC}"
 PICFLAG=""
 
 # allow for --with-hostld=gcc
@@ -68,7 +66,6 @@ case "$host_os" in
                ;;
        *irix*)
                BLDSHARED="true"
-               SHLD="${PROG_LD}"
                ;;
        *aix*)
                BLDSHARED="true"
@@ -112,6 +109,7 @@ AC_LD_PICFLAG
 AC_LD_EXPORT_DYNAMIC
 AC_LD_SHLIBEXT
 AC_LD_SONAMEFLAG
+AC_LIBREPLACE_SHLD
 AC_LIBREPLACE_SHLD_FLAGS
 AC_LIBREPLACE_MDLD
 AC_LIBREPLACE_MDLD_FLAGS