summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2024-08-19 08:53:15 +0300
committerViorel Munteanu <ceamac@gentoo.org>2024-08-19 09:02:08 +0300
commitb1619cb5f7d2fafae4adeaa9b25182eb6f658c17 (patch)
treefa651ea541265cec05df6f210678750db3de52d0 /eclass
parentdev-ruby/term-ansicolor: add github upstream metadata (diff)
downloadgentoo-b1619cb5f7d2fafae4adeaa9b25182eb6f658c17.tar.gz
gentoo-b1619cb5f7d2fafae4adeaa9b25182eb6f658c17.tar.bz2
gentoo-b1619cb5f7d2fafae4adeaa9b25182eb6f658c17.zip
toolchain-funcs.eclass: fix detecting ld.bfd
There is some more output from the compiler here. We must use a regular expression to avoid a false positive from mold. Acked-by: Sam James <sam@gentoo.org> Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-funcs.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index bc1fb064fc45..5e36fa275dcd 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -472,7 +472,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} =~ .*^"GNU ld".* ]] ; then
return 1
fi