[Mesa-dev] [PATCH 1/2] mesa: bump required GCC version to 4.4.0

Timothy Arceri timothy.arceri at collabora.com
Tue Jan 26 14:04:13 PST 2016


From: Timothy Arceri <t_arceri at yahoo.com.au>

The last time this was bumped we settled on 4.2.0 because OpenBSD
wasn't willing to ship anything greater than 4.2.1 (as that was the
last GPLv2 licensed version) however they now ship 4.9.3.

As far as I can tell the oldest distro still using a current version
of Mesa is Red Hat Enterprise Linux 6 which ships with 4.4.7.

The following patch will make Mesa require at least GCC 4.3.0 to build
however setting an artificial at 4.4.0 means less wasted developer
time deciding what features of GCC can be safely used in future.
---
 configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8d19dab..3cacbef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,7 +167,7 @@ AC_COMPILE_IFELSE(
 
 AC_MSG_RESULT([$acv_mesa_CLANG])
 
-dnl If we're using GCC, make sure that it is at least version 4.2.0.  Older
+dnl If we're using GCC, make sure that it is at least version 4.4.0.  Older
 dnl versions are explictly not supported.
 GEN_ASM_OFFSETS=no
 USE_GNU99=no
@@ -182,9 +182,9 @@ if test "x$GCC" = xyes -a "x$acv_mesa_CLANG" = xno; then
         GCC_VERSION_MINOR=`echo $GCC_VERSION | cut -d. -f2`
     fi
 
-    if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 2 ; then
+    if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 4 ; then
         AC_MSG_RESULT([no])
-        AC_MSG_ERROR([If using GCC, version 4.2.0 or later is required.])
+        AC_MSG_ERROR([If using GCC, version 4.4.0 or later is required.])
     else
         AC_MSG_RESULT([yes])
     fi
-- 
2.5.0



More information about the mesa-dev mailing list