Fix inaccuracies in VxWorks LINK_SPEC
authorDouglas B Rupp <rupp@adacore.com>
Thu, 8 Apr 2021 17:41:11 +0000 (10:41 -0700)
committerOlivier Hainque <hainque@adacore.com>
Fri, 10 Dec 2021 14:21:20 +0000 (14:21 +0000)
commit57b291c27ee7b2b2e6c04c37ec1b8f5bf87b99c4
tree8634172a6aa90285bb7366eb64a8cb6587bd8ef5
parent8a404feb400217e4b3728ee352fb3f6374ef1208
Fix inaccuracies in VxWorks LINK_SPEC

-v needs to generate a -V not -v, as most/all other ports do.

The latter causes collect2 to output exec'd collect-ld with same
switches, which in turn causes a configure test which accumulates
linker switches to contain duplicates, leading to a libstdc++ configure
failure in some configurations.

-V is typically used in such contexts to output the available
emulations.

The change also removes reference to %(link_target), long obsolete.

2021-12-07  Doug Rupp  <rupp@adacore.com>

* config/vxworks.h (LINK_SPEC): Remove %(link_target).
Change %{v:-v} to %{v:-V}.
gcc/config/vxworks.h