* lib/ld.exp (default_ld_version): Fix for current version
printing.
This commit is contained in:
parent
9cfdc91a9a
commit
3b1e54df46
1 changed files with 3 additions and 4 deletions
|
@ -12,10 +12,9 @@ proc default_ld_version { ld } {
|
|||
|
||||
catch "exec $ld --version" tmp
|
||||
set tmp [prune_system_crud $host_triplet $tmp]
|
||||
regexp "version.*$" $tmp version
|
||||
|
||||
if [info exists version] then {
|
||||
clone_output "$ld $version\n"
|
||||
regexp "\[^\n\]* (cygnus-|)(\[-0-9.a-zA-Z-\]+)\[\r\n\].*" $tmp version cyg number
|
||||
if [info exists number] then {
|
||||
clone_output "$ld $number\n"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue