From 97c0ebac6386fb0b235780afcc52f3e178d1cc19 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 12 Jan 2026 07:15:19 +0000 Subject: [PATCH] eclass/toolchain-funcs: Sync with Gentoo It's from Gentoo commit 6b15667b8830964c37231fa5496a60a824dc85b6. Signed-off-by: Flatcar Buildbot --- .../third_party/portage-stable/eclass/toolchain-funcs.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/toolchain-funcs.eclass b/sdk_container/src/third_party/portage-stable/eclass/toolchain-funcs.eclass index 3787a84805..3f820c2d85 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/toolchain-funcs.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/toolchain-funcs.eclass @@ -474,7 +474,7 @@ tc-ld-is-bfd() { EOF out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1) rm -f "${base}"* - if [[ ! ${out} =~ .*^"GNU ld".* ]] ; then + if [[ ! ${out} =~ (^|$'\n')"GNU ld".* ]] ; then return 1 fi