ld/testsuite: consistently add board_ldflags when linking with GCC
authorClément Chigot <chigot@adacore.com>
Thu, 15 Sep 2022 07:23:50 +0000 (09:23 +0200)
committerClément Chigot <chigot@adacore.com>
Mon, 17 Oct 2022 11:02:54 +0000 (13:02 +0200)
commit95a20247e8caf4b2dfe3ccc587fe59d53d0e5bb6
tree82657265b7f2f92ab80bf79eeafd60ce6e711387
parent2a3ed404494cfd7f3b10b5fad7c8625e3942d933
ld/testsuite: consistently add board_ldflags when linking with GCC

Currently, the functions checking if the compiler is available or if a
feature is available add both board_cflags and board_ldflags.
However, functions running the tests only retrieve board_cflags. This
can lead to unexpected errors when mandaratory flags are defined in
board_ldflags and not board_cflags.

ld/ChangeLog:

* testsuite/ld-unique/unique.exp: Add board_ldflags when
linking with GCC.
* testsuite/lib/ld-lib.exp: Likewise.
ld/testsuite/ld-unique/unique.exp
ld/testsuite/lib/ld-lib.exp