public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5897] Fix inaccuracies in VxWorks LINK_SPEC
@ 2021-12-10 14:21 Olivier Hainque
  0 siblings, 0 replies; only message in thread
From: Olivier Hainque @ 2021-12-10 14:21 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:57b291c27ee7b2b2e6c04c37ec1b8f5bf87b99c4

commit r12-5897-g57b291c27ee7b2b2e6c04c37ec1b8f5bf87b99c4
Author: Douglas B Rupp <rupp@adacore.com>
Date:   Thu Apr 8 10:41:11 2021 -0700

    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}.

Diff:
---
 gcc/config/vxworks.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h
index bddf2c37f42..8210de467dd 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}					\


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-10 14:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10 14:21 [gcc r12-5897] Fix inaccuracies in VxWorks LINK_SPEC Olivier Hainque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).