Hello,

To help locate crt0.o with -l:crt0.o on VxWorks7, we currently
stick an ad-hoc -L in LIB_SPEC.

This gets removed by -nodefaultlibs, which then affects more
that just default libs.

This patch fixes this by replacing the ad-hoc -L by a
STARTFILE_PREFIX_SPEC, which makes sense anyway for something
intended to help find crt0.o.

Checked on a gcc-8 based source tree that I can still
build functional compilers passing Ada ACATS for VxWorks
6.9 and 7.0.

Bootstrapped and reg tested on mainline for x86_64-linux.

With Kind Regards,

Olivier

2018-09-20  Olivier Hainque  <hain...@adacore.com>

        * config/vxworks.h (STARTFILE_PREFIX_SPEC): Define.
        (VXWORKS_LIBS_DIR_RTP): Remove definition and use.

Attachment: 0005-Introduce-a-STARTFILE_PREFIX_SPEC-for-VxWorks7.patch
Description: Binary data





Reply via email to