]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - configure
Arrange to --disable-shared by default for VxWorks
[thirdparty/gcc.git] / configure
index e7604dc6ff08cdf96aefd61a42bdd27e064451e8..d9aa84c6138ad867c21f55232b1db4c9ce24a0c4 100755 (executable)
--- a/configure
+++ b/configure
@@ -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.