0002-relax-dependency-on-GCC-to-4.8-and-binutils-to-2.24.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From add730a680075ed611797b9ea771bf977667a7de 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. The glibc package has been updating the toolchain version
  6. dependency since 2.28.x. The dependencies don't currently
  7. apply to the localedef build of the package, so this
  8. patchset relaxes the restriction such that builds can still
  9. occur on older host machines.
  10. Here's a related post from 2018 for a similar patchset.
  11. http://lists.busybox.net/pipermail/buildroot/2018-December/237949.html
  12. Timeline of relevant commits that adjust the dependency upstream.
  13. GCC 4.9+
  14. https://sourceware.org/git/?p=glibc.git;a=commit;h=4add86749a31f302674599b69d2eea691d69341a
  15. Binutils 2.25+
  16. https://sourceware.org/git/?p=glibc.git;a=commit;h=073e8fa7739ed453d6854b834f290c263a6cdb9f
  17. https://sourceware.org/git/?p=glibc.git;a=commit;h=b4396163aa8666f970aaf43eaca25f3a92b18c1b
  18. GCC 5+
  19. https://sourceware.org/git/?p=glibc.git;a=commit;h=192963be49678b48f60218f1f794991cdd9fe472
  20. GCC 6.2+
  21. https://sourceware.org/git/?p=glibc.git;a=commit;h=4dcbbc3b28aaeafe23e1a30db84055aa6f6fa987
  22. Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
  23. [yann.morin.1998@free.fr: update for 2.37]
  24. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
  25. [Romain: rebase on 2.38]
  26. Signed-off-by: Romain Naour <romain.naour@gmail.com>
  27. ---
  28. configure | 4 ++--
  29. 1 file changed, 2 insertions(+), 2 deletions(-)
  30. diff --git a/configure b/configure
  31. index 4ef387146d..4c6f91117d 100755
  32. --- a/configure
  33. +++ b/configure
  34. @@ -5293,7 +5293,7 @@ printf %s "checking version of $LD... " >&6; }
  35. ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
  36. case $ac_prog_version in
  37. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  38. - 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
  39. + 2.1[0-9][0-9]*|2.2[4-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
  40. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  41. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  42. @@ -5735,7 +5735,7 @@ int
  43. main (void)
  44. {
  45. -#if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
  46. +#if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)
  47. #error insufficient compiler
  48. #endif
  49. ;
  50. --
  51. 2.41.0