summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/build/m4/check_ld.m48
1 files changed, 3 insertions, 5 deletions
diff --git a/source4/build/m4/check_ld.m4 b/source4/build/m4/check_ld.m4
index ddda7e193b..88d3e49e0c 100644
--- a/source4/build/m4/check_ld.m4
+++ b/source4/build/m4/check_ld.m4
@@ -10,18 +10,13 @@ AC_PATH_PROG(PROG_LD,ld)
LD=${PROG_LD}
AC_PROG_LD_GNU
LD=""
-AC_PATH_PROG(PROG_AR, ar)
-AC_SUBST(STLD)
-AC_SUBST(STLD_FLAGS)
AC_SUBST(BLDSHARED)
AC_SUBST(LD)
AC_SUBST(LDFLAGS)
# Assume non-shared by default and override below
# these are the defaults, good for lots of systems
-STLD=${PROG_AR}
-STLD_FLAGS="-rcs"
BLDSHARED="false"
LD="${CC}"
PICFLAG=""
@@ -94,6 +89,9 @@ AC_MSG_RESULT([$LDFLAGS])
AC_SUBST(HOSTLD)
+AC_LIBREPLACE_STLD
+AC_LIBREPLACE_STLD_FLAGS
+
AC_MSG_CHECKING([STLD])
AC_MSG_RESULT([$STLD])
AC_MSG_CHECKING([STLD_FLAGS])