1From ece3ce581e3ec530eaccfe7f284c52e115ec7aa9 Mon Sep 17 00:00:00 2001 2From: Martin Kroeker <martin@ruby.chemie.uni-freiburg.de> 3Date: Wed, 10 Feb 2021 14:22:59 +0100 4Subject: [PATCH] Strip parenthesized (pkgversion) data from GCC version string 5 to avoid misinterpretation 6 7See https://github.com/xianyi/OpenBLAS/issues/3099 for details. 8 9Upstream-status: backport 10 11[for import into Buildroot] 12Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> 13 14 15--- 16 f_check | 1 + 17 1 file changed, 1 insertion(+) 18 19diff --git a/f_check b/f_check 20index e9aca4ff9..ffe9c6b46 100644 21--- a/f_check 22+++ b/f_check 23@@ -75,6 +75,7 @@ if ($compiler eq "") { 24 25 } elsif ($data =~ /GNU/ || $data =~ /GCC/ ) { 26 27+ $data =~ s/\(+.*?\)+//g; 28 $data =~ /(\d+)\.(\d+).(\d+)/; 29 $major = $1; 30 $minor = $2; 31