Hello,

The attached patch fixes a couple of incorrect things in
the VxWorks default LINK_SPEC, exposed during our work on
the support for building shared libraries.

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

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.

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

Tested with builds and test runs on VxWorks 6.9 and 7.2.

Olivier


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

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

Attachment: 0001-Fix-inaccuracies-in-VxWorks-LINK_SPEC.patch
Description: Binary data

Reply via email to