From: Alan Modra Date: Mon, 20 Feb 2023 23:27:49 +0000 (+1030) Subject: alpha-*-vms missing libraries X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=294540ac96418b437f529107b33394bf4bf39311;p=binutils-gdb.git alpha-*-vms missing libraries For this: ./ld-new: cannot find -limagelib: No such file or directory ./ld-new: cannot find -lstarlet: No such file or directory ./ld-new: cannot find -lsys$public_vectors: No such file or directory the logs showed creating dummy tmpdir/libimagelib: creating dummy No creating dummy such etc. So rubbish instead of tmpdir/libimagelib.a and the other required libs. * testsuite/config/default.exp: Correct regex detecting missing libraries automatically searched by alpha-dec-vms-ld. --- diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp index 257fd4ba985..59a45e34d1d 100644 --- a/ld/testsuite/config/default.exp +++ b/ld/testsuite/config/default.exp @@ -471,7 +471,7 @@ if { [istarget alpha*-*-*vms*] } { close $f if { [ld_assemble $as $src tmpdir/empty.o] && ![ld_link $LD tmpdir/empty tmpdir/empty.o] - && [regsub -all {[^\n]*: cannot find -l([^\n]*)} $exec_output {tmpdir/lib\1.a } missing_libs] } { + && [regsub -all {[^\n]*: cannot find -l([^\n :]*)[^\n]*} $exec_output {tmpdir/lib\1.a } missing_libs] } { regsub -all {\$} $missing_libs {\\\$} missing_libs for { set i 0 } { $i < [llength $missing_libs] } { incr i } { set f [lindex $missing_libs $i]