]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with libc_internal.
authorOlivier Hainque <hainque@adacore.com>
Fri, 8 Jan 2016 14:34:08 +0000 (14:34 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Fri, 8 Jan 2016 14:34:08 +0000 (14:34 +0000)
* config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
libc_internal.

From-SVN: r232164

gcc/ChangeLog
gcc/config/vxworks.h

index f9c42c7909542f9efb975483fdd499734c0782d0..858938afb98fc4bfc6883ea3796ba89ffe5cc7a8 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-08  Olivier Hainque  <hainque@adacore.com>
+
+       * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
+       libc_internal.
+
 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
 
        * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
index 13e69c585019dbd10be1b0fc48470ace72249176..f35692674277026337e86b5989167f85ecae73ef 100644 (file)
@@ -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}}"