aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2018-10-29 15:07:47 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2018-10-29 15:07:47 +0000
commitbca81bd229115f49858380bb696b0ed193eeb5b1 (patch)
tree2cc42c866e34d660131b077f8ea86993a2b6d471 /gcc
parent3b727799d4ebf8de4955033fb288f416a265bb7f (diff)
downloadgcc-bca81bd229115f49858380bb696b0ed193eeb5b1.zip
gcc-bca81bd229115f49858380bb696b0ed193eeb5b1.tar.gz
gcc-bca81bd229115f49858380bb696b0ed193eeb5b1.tar.bz2
Extract VXWORKS_NET_LIBS_RTP from VXWORKS_LIBS_RTP
2018-10-29 Olivier Hainque <hainque@adacore.com> * VXWORKS_NET_LIBS_RTP: New macro, network part of VXWORKS_LIBS_RTP. From-SVN: r265595
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/vxworks.h12
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 86cb859..735bb89 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
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
ports configuration macro, defaults to "gnu".
(VXWORKS_OS_CPP_BUILTINS): Use it. Feed TOOL and
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h
index 5f87920c..2c4c796 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