mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-27 12:30:34 -09:00
Since the bump of autoconf to version 2.73 in Buildroot commit, the build of target bind fails if the host compiler is too old, because the bind build system tries to use -std=gnu23 when building host tools which isn't supported by older GCC releases, causing: checking whether the C compiler works... no configure: error: in '/home/thomas/autobuild/instance-2/output-1/build/bind-9.20.26': configure: error: C compiler cannot create executables See 'config.log' for more details make: *** [package/pkg-generic.mk:263: /home/thomas/autobuild/instance-2/output-1/build/bind-9.20.26/.stamp_configured] Error 77 To fix this, we backport a number of patches from autoconf-archive, to fix the m4/ax_prog_cc_for_build.m4 macro file, so that it works with autoconf 2.73. OpenEmbedded has a similar fix: https://git.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/bind/bind/0001-m4-Backport-ax_prog_cc_for_build.m4-macros.patch but did not backport as carefully the autoconf-archive commits (and their commit message reverts to sudo). The patches can be dropped when we update to a newer version of bind that itself has an updated copy of the m4/ax_prog_cc_for_build.m4 file. Fixes: https://autobuild.buildroot.net/results/13e07755101b7cae2f84eef173ef752f92842e71/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From ce23f1b3db8be19ca74589958a9af56c3ee888d0 Mon Sep 17 00:00:00 2001
|
|
From: Dimitri Papadopoulos
|
|
<3234522+DimitriPapadopoulos@users.noreply.github.com>
|
|
Date: Mon, 25 Dec 2023 13:04:00 +0100
|
|
Subject: [PATCH] Fix typos found by codespell
|
|
|
|
Upstream: https://github.com/autoconf-archive/autoconf-archive/commit/7d383b7aea765a8bc557ec6e88461c6da2db034e
|
|
[Thomas: partial backport, only changes to ax_prog_cc_for_build.m4 were kept]
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
---
|
|
m4/ax_prog_cc_for_build.m4 | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/m4/ax_prog_cc_for_build.m4 b/m4/ax_prog_cc_for_build.m4
|
|
index 1db8d73..2f44436 100644
|
|
--- a/m4/ax_prog_cc_for_build.m4
|
|
+++ b/m4/ax_prog_cc_for_build.m4
|
|
@@ -32,7 +32,7 @@
|
|
# and this notice are preserved. This file is offered as-is, without any
|
|
# warranty.
|
|
|
|
-#serial 21
|
|
+#serial 22
|
|
|
|
AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD])
|
|
AC_DEFUN([AX_PROG_CC_FOR_BUILD], [dnl
|
|
@@ -141,7 +141,7 @@ popdef([ac_cv_prog_gcc])dnl
|
|
popdef([ac_cv_prog_CPP])dnl
|
|
|
|
dnl restore global variables ac_ext, ac_cpp, ac_compile,
|
|
-dnl ac_link, ac_compiler_gnu (dependant on the current
|
|
+dnl ac_link, ac_compiler_gnu (dependent on the current
|
|
dnl language after popping):
|
|
AC_LANG_POP([C])
|
|
|
|
--
|
|
2.55.0
|
|
|