diff options
author | Douglas B Rupp <rupp@adacore.com> | 2021-04-08 10:41:11 -0700 |
---|---|---|
committer | Olivier Hainque <hainque@adacore.com> | 2021-12-10 14:21:20 +0000 |
commit | 57b291c27ee7b2b2e6c04c37ec1b8f5bf87b99c4 (patch) | |
tree | 8634172a6aa90285bb7366eb64a8cb6587bd8ef5 /gcc/config | |
parent | 8a404feb400217e4b3728ee352fb3f6374ef1208 (diff) | |
download | gcc-57b291c27ee7b2b2e6c04c37ec1b8f5bf87b99c4.zip gcc-57b291c27ee7b2b2e6c04c37ec1b8f5bf87b99c4.tar.gz gcc-57b291c27ee7b2b2e6c04c37ec1b8f5bf87b99c4.tar.bz2 |
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}.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/vxworks.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index bddf2c3..8210de4 100644 --- a/gcc/config/vxworks.h +++ b/gcc/config/vxworks.h @@ -141,8 +141,8 @@ along with GCC; see the file COPYING3. If not see %{!shared: \ %{mrtp:-q %{h*} \ %{R*} %{!T*: %(link_start) } \ - %(link_target) %(link_os)}} \ - %{v:-v} \ + %(link_os)}} \ + %{v:-V} \ %{shared:-shared} \ %{Bstatic:-Bstatic} \ %{Bdynamic:-Bdynamic} \ |