diff options
author | hainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-08 14:34:08 +0000 |
---|---|---|
committer | hainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-08 14:34:08 +0000 |
commit | 81573ac9477db6acd3f77d6f6d7768029289682d (patch) | |
tree | 8dbd84c0957b6321c6fb2860d482691c5e6afdfd /gcc/config/vxworks.h | |
parent | b3988ef03d3a7ad0df69f6a2e0aacab294ab7451 (diff) | |
download | gcc-81573ac9477db6acd3f77d6f6d7768029289682d.tar.gz |
* config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
libc_internal.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232164 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/vxworks.h')
-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 13e69c58501..f3569267427 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}}" |