From 6835baee7196eeb03f24f6e650c0d37cbb295647 Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Tue, 28 Jun 2022 10:34:56 +0200
Subject: [PATCH] libgomp: fix typo in mold linker detection

libgomp/ChangeLog:

	* acinclude.m4: Fix typo in mold linker detection.
	* Makefile.in: Regenerate.
	* configure: Regenerate.
---
 libgomp/Makefile.in  | 2 +-
 libgomp/acinclude.m4 | 2 +-
 libgomp/configure    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libgomp/Makefile.in b/libgomp/Makefile.in
index 8f6255f2d706..8ffd45c9c418 100644
--- a/libgomp/Makefile.in
+++ b/libgomp/Makefile.in
@@ -16,7 +16,7 @@
 
 # Plugins for offload execution, Makefile.am fragment.
 #
-# Copyright (C) 2014-2021 Free Software Foundation, Inc.
+# Copyright (C) 2014-2022 Free Software Foundation, Inc.
 #
 # Contributed by Mentor Embedded.
 #
diff --git a/libgomp/acinclude.m4 b/libgomp/acinclude.m4
index b8154eba99c3..12fbb20066cb 100644
--- a/libgomp/acinclude.m4
+++ b/libgomp/acinclude.m4
@@ -154,7 +154,7 @@ AC_DEFUN([LIBGOMP_CHECK_LINKER_FEATURES], [
   if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
     libgomp_ld_is_gold=yes
   elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then
-    libat_ld_is_mold=yes
+    libgomp_ld_is_mold=yes
   fi
   changequote(,)
   ldver=`$LD --version 2>/dev/null |
diff --git a/libgomp/configure b/libgomp/configure
index 89f14e441f2e..b11170e6a7c8 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -16027,7 +16027,7 @@ with_gnu_ld=$lt_cv_prog_gnu_ld
   if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
     libgomp_ld_is_gold=yes
   elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then
-    libat_ld_is_mold=yes
+    libgomp_ld_is_mold=yes
   fi
 
   ldver=`$LD --version 2>/dev/null |
-- 
GitLab