From: Olivier Hainque Date: Fri, 8 Jan 2016 14:34:08 +0000 (+0000) Subject: vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with libc_internal. X-Git-Tag: basepoints/gcc-7~1769 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b464ba1051ace7743028115ef3b4fb1839f25ae7;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f9c42c790954..858938afb98f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-01-08 Olivier Hainque + + * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with + libc_internal. + 2016-01-08 Alan Lawrence * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to... diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index 13e69c585019..f35692674277 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}}"