From ed943242a05af0b4c8750ecb603dc088f41681cd Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Sat, 11 Apr 2026 12:30:55 +0200 Subject: [PATCH] autotools: query for ar(1) with AC_PROG_AR As it needs to match the --host architecture. Tested against nsd-4.14.2 --- Makefile.in | 1 + configure.ac | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile.in b/Makefile.in index 51aa1bc..b54d8d5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -11,6 +11,7 @@ HASWELL = @HAVE_HASWELL@ CC = @CC@ CPPFLAGS = @CPPFLAGS@ -Iinclude -I$(SOURCE)/include -I$(SOURCE)/src -I. CFLAGS = @CFLAGS@ +AR = @AR@ DEPFLAGS = @DEPFLAGS@ VPATH = @srcdir@ diff --git a/configure.ac b/configure.ac index 72356ed..29018fc 100644 --- a/configure.ac +++ b/configure.ac @@ -21,6 +21,8 @@ m4_include(m4/ax_check_compile_flag.m4) CFLAGS="$CFLAGS" m4_version_prereq([2.70], [AC_PROG_CC], [AC_PROG_CC_STDC]) +AC_PROG_AR + # allow user to override the -g -O2 flags. if test "x$CFLAGS" = "x" ; then ACX_CHECK_COMPILER_FLAG(g, [CFLAGS="$CFLAGS -g"])