]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - configure
configure.ac: When bootstrapping with GCC, add -std=c++98 to CXX.
[thirdparty/gcc.git] / configure
index d8043298ad0908298ccb53267d8e6f4e59b22b0d..633afa405a410635d4327c89d948793323bd6a4b 100755 (executable)
--- a/configure
+++ b/configure
@@ -5407,6 +5407,12 @@ $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
     ;;
 esac
 
+# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
+# C++98 compiler can still start the bootstrap.
+if test "$enable_bootstrap:$GXX" = "yes:yes"; then
+  CXX="$CXX -std=c++98"
+fi
+
 # Used for setting $lt_cv_objdir
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 $as_echo_n "checking for objdir... " >&6; }