PR23235, make check uses system installed ld
authorAlan Modra <amodra@gmail.com>
Mon, 28 May 2018 07:00:23 +0000 (16:30 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 28 May 2018 12:13:44 +0000 (21:43 +0930)
commitbb3b5316332875b436b4a88d1ec6968eba46a870
treedc3bae161cebb5c66c84ac1308fb9613e9ecd873
parent46207bf3b5b9880804ee4b527cc22b314eb5daba
PR23235, make check uses system installed ld

This patch doesn't stop the build-id and debuglink tests using the
installed ld, it just prevents a compiler failure from resulting in a
test fail.  We could move the tests to the ld testsuite but it doesn't
seem all that important.

PR 23235
* testsuite/binutils-all/compress.exp (test_gnu_debuglink): Return
unsupported rather than fail on compile errors.
* testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
Likewise.  Save and restore CFLAGS_FOR_TARGET.
binutils/ChangeLog
binutils/testsuite/binutils-all/compress.exp
binutils/testsuite/binutils-all/objdump.exp