From ea675d0af7dd6813da96c8ba6abd718cbe12573b Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Thu, 4 Jun 2026 10:50:54 -0700 Subject: [PATCH] autoconf: sync with upstream pa_option_lto.m4 This change has no effect on NASM, but syncs with the upstream collection. RANLIB should be defaulting to : if not present. Signed-off-by: H. Peter Anvin (Intel) --- autoconf/m4/pa_option_lto.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoconf/m4/pa_option_lto.m4 b/autoconf/m4/pa_option_lto.m4 index df2955c26..aa1cc0672 100644 --- a/autoconf/m4/pa_option_lto.m4 +++ b/autoconf/m4/pa_option_lto.m4 @@ -13,7 +13,7 @@ dnl If not, do it now to prevent it from getting down further down. dnl Do it unconditionally to avoid inconsistent behavior with or dnl without --enable-lto. AS_IF([test -z "$AR"], [AC_CHECK_TOOL(AR, ar)]) -AS_IF([test -z "$RANLIB"], [AC_CHECK_TOOL(RANLIB, ranlib)]) +AS_IF([test -z "$RANLIB"], [AC_CHECK_TOOL(RANLIB, ranlib, :)]) PA_ARG_BOOL([lto], [Try to enable link-time optimization for this compiler],