diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2024-08-19 08:53:15 +0300 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2024-08-19 09:02:08 +0300 |
commit | b1619cb5f7d2fafae4adeaa9b25182eb6f658c17 (patch) | |
tree | fa651ea541265cec05df6f210678750db3de52d0 /eclass | |
parent | dev-ruby/term-ansicolor: add github upstream metadata (diff) | |
download | gentoo-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.eclass | 2 |
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 |