Hello,

This is part of a set of changes we have had in-house for a while
to improve the support of shared libraries on VxWorks.

Today, the port links with libc_internal ("a superset of libgcc.a
that we want to use" says comment) for RTPs, static or dynamic.

Shared RTPs on VxWorks are linked with the VxWorks libc.so, which also contains
everything libgcc related. libc_internal isn't needed in such configurations,
and even problematic because it brings in alternate symbol definition.

The proposed change fixes this.

We have been using it successfully for a while on gcc-4.9 now, and I checked
that a mainline compiler configured for powerpc-wrs-vxworks builds after the
change.

OK to commit ?

2015-12-22  Olivier Hainque  <hain...@adacore.com>

        * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
        libc_internal.

Attachment: link-shared-rtp.diff
Description: Binary data

Reply via email to