diff options
author | Alan Modra <amodra@gmail.com> | 2021-08-20 09:48:13 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-08-24 20:39:29 +0930 |
commit | 5c133c109550321c84d25bf084828bb02219d019 (patch) | |
tree | a675c70b966ded38d35594bdf68ec3417010629e | |
parent | d4f5b5e214d1a2a8456e71bd04cd3205d8839642 (diff) | |
download | fsf-binutils-gdb-5c133c109550321c84d25bf084828bb02219d019.zip fsf-binutils-gdb-5c133c109550321c84d25bf084828bb02219d019.tar.gz fsf-binutils-gdb-5c133c109550321c84d25bf084828bb02219d019.tar.bz2 |
Real programmers don't configure gcc using --with-ld
* testsuite/lib/ld-lib.exp (run_host_cmd): Give a clue as to why
gcc -B doesn't pick up the ld under test.
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index 8fd14af..fec31fa 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -117,7 +117,11 @@ proc run_host_cmd { prog command } { set gcc_ld_version_message [run_host_cmd "$prog" "$gccflags $ver"] if {[string first $ld_version_message $gcc_ld_version_message] < 0} { perror "************************************************************************" - perror "Your compiler driver ignores -B when choosing ld." + perror "Your compiler apparently ignores -B when choosing ld." + set gcc_v [run_host_cmd "$prog" "$gccflags -v"] + if { [string first "--with-ld=" $gcc_v] >= 0 } { + perror "Hint: don't configure gcc using --with-ld (or --with-as)" + } perror "You will not be testing the new ld in many of the following tests." set gcc_ld_version [run_host_cmd "$prog" "$gccflags --print-prog-name=ld"] if {![string match "" $gcc_ld_version] && ![string match "ld" $gcc_ld_version]} { |