diff options
author | Olivier Hainque <hainque@adacore.com> | 2016-01-08 14:34:08 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@gcc.gnu.org> | 2016-01-08 14:34:08 +0000 |
commit | b464ba1051ace7743028115ef3b4fb1839f25ae7 (patch) | |
tree | 8dbd84c0957b6321c6fb2860d482691c5e6afdfd /gcc/config | |
parent | 32a8c97f5ca44ecb5f5e58000c8bd9bc0d5759a4 (diff) | |
download | gcc-b464ba1051ace7743028115ef3b4fb1839f25ae7.zip gcc-b464ba1051ace7743028115ef3b4fb1839f25ae7.tar.gz gcc-b464ba1051ace7743028115ef3b4fb1839f25ae7.tar.bz2 |
vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with libc_internal.
* config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
libc_internal.
From-SVN: r232164
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/vxworks.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index 13e69c5..f356926 100644 --- a/gcc/config/vxworks.h +++ b/gcc/config/vxworks.h @@ -71,13 +71,13 @@ along with GCC; see the file COPYING3. If not see %{mrtp:%{!shared:%{!non-static:-static} \ %{non-static:--force-dynamic --export-dynamic}}}" -/* For VxWorks, the system provides libc_internal.a. This is a superset - of libgcc.a; we want to use it. Make sure not to dynamically export - any of its symbols, though. Always look for libgcc.a first so that - we get the latest versions of the GNU intrinsics during our builds. */ +/* For VxWorks static rtps, the system provides libc_internal.a, a superset + of libgcc.a that we want to use. Make sure not to dynamically export any + of its symbols, though, and always look for libgcc.a first so that we get + the latest versions of the GNU intrinsics during our builds. */ #undef VXWORKS_LIBGCC_SPEC #define VXWORKS_LIBGCC_SPEC \ - "-lgcc %{mrtp:--exclude-libs=libc_internal,libgcc -lc_internal}" + "-lgcc %{mrtp:%{!shared:--exclude-libs=libc_internal,libgcc -lc_internal}}" #undef VXWORKS_STARTFILE_SPEC #define VXWORKS_STARTFILE_SPEC "%{mrtp:%{!shared:-l:crt0.o}}" |