diff options
author | Olivier Hainque <hainque@adacore.com> | 2021-12-03 17:48:18 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@adacore.com> | 2022-09-30 10:43:13 +0000 |
commit | 9b8ffbb8a0cadd68bf7887c5655a29ec04060111 (patch) | |
tree | ffb11ffb4bdb78faae2b68d7a42cb2e31d2f07d4 /configure | |
parent | 43faf3e5445b571731e52faa1be085ecd0a09323 (diff) | |
download | gcc-9b8ffbb8a0cadd68bf7887c5655a29ec04060111.zip gcc-9b8ffbb8a0cadd68bf7887c5655a29ec04060111.tar.gz gcc-9b8ffbb8a0cadd68bf7887c5655a29ec04060111.tar.bz2 |
Arrange to --disable-shared by default for VxWorks
This change makes sure that shared libraries for VxWorks are
only built on explicit request, when configured with --enable-shared.
As the support to build shared libs gets in very incrementally,
this provides us with a robust way to guard the relevant pieces
and reduce the risks of accidentally breaking a platform not yet
ready for it.
2022-09-30 Olivier Hainque <hainque@adacore.com>
* configure.ac (*vxworks*): If enable_shared is not
set, set to "no" and add --disable-shared to target and
host_configargs.
* configure: Regenerate.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -10263,6 +10263,17 @@ case "${target}" in mep*) FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" ;; + # The VxWorks support for shared libraries is getting in + # incrementally. Make sure it doesn't get activated implicitly: + *vxworks*) + if test "${enable_shared-unset}" = unset ; then + enable_shared=no + # So the build of libraries knows ... + target_configargs="${target_configargs} --disable-shared" + # So gcc knows ... + host_configargs="${host_configargs} --disable-shared" + fi + ;; esac # Makefile fragments. |