* Real programmers don't configure gcc using --with-ld
@ 2021-08-24 12:05 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2021-08-24 12:05 UTC (permalink / raw)
To: binutils
* testsuite/lib/ld-lib.exp (run_host_cmd): Give a clue as to why
gcc -B doesn't pick up the ld under test.
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 8fd14afc63e..fec31fa8e19 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]} {
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-24 12:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24 12:05 Real programmers don't configure gcc using --with-ld Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).