a6e87cc317ab4234a743953a5e8416ce2e249c26
[buildroot.git] /
1 From 313e04bfbd281f9b46fdde097aacb59d501820a3 Mon Sep 17 00:00:00 2001
2 From: Matt Weber <matthew.weber@rockwellcollins.com>
3 Date: Thu, 6 Feb 2020 14:36:21 -0600
4 Subject: [PATCH] relax dependency on GCC to 4.8 and binutils to 2.24
5
6 The glibc package has been updating the toolchain version
7 dependency since 2.28.x. The dependencies don't currently
8 apply to the localedef build of the package, so this
9 patchset relaxes the restriction such that builds can still
10 occur on older host machines.
11
12 Here's a related post from 2018 for a similar patchset.
13 http://lists.busybox.net/pipermail/buildroot/2018-December/237949.html
14
15 Timeline of relevant commits that adjust the dependency upstream.
16 GCC 4.9+
17 https://sourceware.org/git/?p=glibc.git;a=commit;h=4add86749a31f302674599b69d2eea691d69341a
18 Binutils 2.25+
19 https://sourceware.org/git/?p=glibc.git;a=commit;h=073e8fa7739ed453d6854b834f290c263a6cdb9f
20 https://sourceware.org/git/?p=glibc.git;a=commit;h=b4396163aa8666f970aaf43eaca25f3a92b18c1b
21 GCC 5+
22 https://sourceware.org/git/?p=glibc.git;a=commit;h=192963be49678b48f60218f1f794991cdd9fe472
23 GCC 6.2+
24 https://sourceware.org/git/?p=glibc.git;a=commit;h=4dcbbc3b28aaeafe23e1a30db84055aa6f6fa987
25
26 Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
27 ---
28 configure | 6 +++---
29 1 file changed, 3 insertions(+), 3 deletions(-)
30
31 diff --git a/configure b/configure
32 index 6d26b824..9ac2e5e9 100755
33 --- a/configure
34 +++ b/configure
35 @@ -4601,7 +4601,7 @@ $as_echo_n "checking version of $AS... " >&6; }
36 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
37 case $ac_prog_version in
38 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
39 - 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
40 + 2.1[0-9][0-9]*|2.2[4-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
41 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
42 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
43
44 @@ -4731,7 +4731,7 @@ $as_echo_n "checking version of $LD... " >&6; }
45 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
46 case $ac_prog_version in
47 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
48 - 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
49 + 2.1[0-9][0-9]*|2.2[4-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
50 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
51 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
52
53 @@ -5140,7 +5140,7 @@ int
54 main ()
55 {
56
57 -#if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
58 +#if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)
59 #error insufficient compiler
60 #endif
61 ;
62 --
63 2.18.0
64