]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Extract VXWORKS_NET_LIBS_RTP from VXWORKS_LIBS_RTP
authorhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Oct 2018 15:07:47 +0000 (15:07 +0000)
committerhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Oct 2018 15:07:47 +0000 (15:07 +0000)
2018-10-29  Olivier Hainque  <hainque@adacore.com>

* VXWORKS_NET_LIBS_RTP: New macro, network part of VXWORKS_LIBS_RTP.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265595 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/vxworks.h

index 86cb859cc7bf9dee3666ffa7592d14b9c623b588..735bb897a9929f6f217844939ad0c8487761bc3f 100644 (file)
@@ -1,3 +1,7 @@
+2018-10-29  Olivier Hainque  <hainque@adacore.com>
+
+       * VXWORKS_NET_LIBS_RTP: New macro, network part of VXWORKS_LIBS_RTP.
+
 2018-10-29  Olivier Hainque  <hainque@adacore.com>
 
        * config/vxworks.h (VXWORKS_PERSONALITY): New VxWorks
index 5f87920cece147011d35ecf75bd05cc6bb01fa61..2c4c79643de4cd01adf960b621b65c02eee78e67 100644 (file)
@@ -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