Download source only on remote host
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Apr 2016 13:50:33 +0000 (06:50 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Apr 2016 13:52:55 +0000 (06:52 -0700)
commit010f98a5859620001aed9f27f213ed681c73a59a
treee98758dcf1d1dbe2d263182bf90e8b8183f26543
parentd347c9df495036dcbe5bc710ac5a07079bdd59ad
Download source only on remote host

There is no need to download source if we aren't on remote host.
Otherwise, each ld test run on local host leaves behind a couple
test files.

* config/default.exp (NOPIE_CFLAGS): Download source only on
remote host.
(NOPIE_LDFLAGS): Likewise.
* testsuite/lib/ld-lib.exp (check_lto_available): Likewise.
(check_lto_fat_available): Likewise.
(check_lto_shared_available): Likewise.
(check_ifunc_available): Likewise.
(check_ifunc_attribute_available): Likewise.
ld/ChangeLog
ld/testsuite/config/default.exp
ld/testsuite/lib/ld-lib.exp