Hello, This patch extracts the network part of the VXWORKS_LIBS_RTP LIB_SPEC component, so it can be redefined by OS specific configuration files.
I used this in the course of the aarch64 port development and verified that I could still build a functional powerpc-vxworks port after the patch. Olivier 2018-10-29 Olivier Hainque <hain...@adacore.com> * VXWORKS_NET_LIBS_RTP: New macro, network part of VXWORKS_LIBS_RTP.
From 45a7b0a2254740306ede125c633bdcb55ae1bdca Mon Sep 17 00:00:00 2001 From: Olivier Hainque <hain...@adacore.com> Date: Fri, 19 Oct 2018 21:20:31 +0200 Subject: [PATCH 3/4] Extract VXWORKS_NET_LIBS_RTP from VXWORKS_LIBS_RTP --- gcc/config/vxworks.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index 2e2ab6c..b00b597 100644 --- a/gcc/config/vxworks.h +++ b/gcc/config/vxworks.h @@ -69,13 +69,19 @@ along with GCC; see the file COPYING3. If not see libgcc.a that we need to use e.g. to satisfy references to __init and __fini. We still want our libgcc to prevail for symbols it would provide (e.g. register save entry points), so re-place it here between libraries - that might reference it and libc_internal. Also, some versions of VxWorks - rely on explicit extra libraries for system calls. */ + that might reference it and libc_internal. + + In addition, some versions of VxWorks rely on explicit extra libraries for + system calls and the set of base network libraries of common use varies + across architectures. The default settings defined here might be redefined + by target specific port configuration files. */ #define VXWORKS_SYSCALL_LIBS_RTP +#define VXWORKS_NET_LIBS_RTP "-lnet -ldsi" + #define VXWORKS_LIBS_RTP \ - VXWORKS_SYSCALL_LIBS_RTP " -lnet -ldsi -lc -lgcc -lc_internal" + VXWORKS_SYSCALL_LIBS_RTP " " VXWORKS_NET_LIBS_RTP " -lc -lgcc -lc_internal" /* On Vx6 and previous, the libraries to pick up depends on the architecture, so cannot be defined for all archs at once. On Vx7, a VSB is always needed -- 1.7.10.4