aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2018-12-21 17:53:40 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-12-21 17:53:40 +0000
commit192963be49678b48f60218f1f794991cdd9fe472 (patch)
treede9988c14e213591d5cf2a1b97092454516b6d22 /configure.ac
parentc0e82f117357a941e4d40fcc08babbd6a3c3a1b5 (diff)
downloadglibc-192963be49678b48f60218f1f794991cdd9fe472.tar
glibc-192963be49678b48f60218f1f794991cdd9fe472.tar.gz
glibc-192963be49678b48f60218f1f794991cdd9fe472.tar.bz2
glibc-192963be49678b48f60218f1f794991cdd9fe472.zip
Require GCC 5 or later to build glibc (bug 23993).
We know that building glibc with GCC 4.9 is broken on various platforms (bug 23993). As it's more than a year since we last increased the minimum GCC version to build glibc, this patch changes the requirement to be GCC 5 or later (indeed, based on 4.9 having been required for building 2.26, it would be consistent in terms of timing to require GCC 6 or later from the 2.30 release onwards). It deliberately just updates the configure test and corresponding documentation, leaving removal of no-longer-needed __GNUC_PREREQ tests for a separate patch. In the NEWS entry, the requirement for a newer GCC version for powerpc64le is reiterated (as in the entry for the 4.9 requirement in 2.26) to avoid suggesting the version requirement there has gone down. (If that version goes up further as part of support for binary128 long double, of course the wording would change at that time.) Tested for x86_64. [BZ #23993] * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later. * configure: Regenerated. * manual/install.texi (Tools for Compilation): Update minimum GCC version. * INSTALL: Regenerated.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6cc10ede98..46a74687a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1017,7 +1017,7 @@ AC_CHECK_PROG_VER(BISON, bison, --version,
AC_CACHE_CHECK([if $CC is sufficient to build libc], libc_cv_compiler_ok, [
AC_TRY_COMPILE([], [
-#if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9)
+#if !defined __GNUC__ || __GNUC__ < 5
#error insufficient compiler
#endif],
[libc_cv_compiler_ok=yes],