From a250792202087f4798e1dc114d8ea3f5037c4b0f Mon Sep 17 00:00:00 2001
From: "Adam J. Stewart" <ajstewart426@gmail.com>
Date: Tue, 25 Oct 2016 13:07:49 -0500
Subject: [PATCH] Find compatibility versions of GCC (#2099)

---
 lib/spack/spack/compilers/gcc.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/spack/spack/compilers/gcc.py b/lib/spack/spack/compilers/gcc.py
index 9ea314efd5..557b1c13a9 100644
--- a/lib/spack/spack/compilers/gcc.py
+++ b/lib/spack/spack/compilers/gcc.py
@@ -41,8 +41,9 @@ class Gcc(Compiler):
     fc_names = ['gfortran']
 
     # MacPorts builds gcc versions with prefixes and -mp-X.Y suffixes.
-    # Homebrew and Linuxes may build gcc with -X, -X.Y suffixes
-    suffixes = [r'-mp-\d\.\d', r'-\d\.\d', r'-\d']
+    # Homebrew and Linuxbrew may build gcc with -X, -X.Y suffixes.
+    # Old compatibility versions may contain XY suffixes.
+    suffixes = [r'-mp-\d\.\d', r'-\d\.\d', r'-\d', r'\d\d']
 
     # Named wrapper links within spack.build_env_path
     link_paths = {'cc': 'gcc/gcc',
-- 
GitLab