mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
eclass/toolchain-funcs: Sync with Gentoo
It's from Gentoo commit 6b15667b8830964c37231fa5496a60a824dc85b6. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
dbdb05cca9
commit
97c0ebac63
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user