diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-21 15:12:35 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-21 15:12:35 +0000 |
commit | 45b5d9f58b1c500a478b86e028c277c1c879451d (patch) | |
tree | c28aed42a444d33939b48f99079c4e4173b2593c /configure | |
parent | e1c75243a5ab74297e21b8f6e49b723392da8ad8 (diff) | |
download | gcc-45b5d9f58b1c500a478b86e028c277c1c879451d.tar.gz |
* configure.ac: Add -std=c++98 to stage1_cxxflags.
* Makefile.tpl (STAGE1_CXXFLAGS): And substitute it.
* Makefile.in, configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223487 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure index d8043298ad0..07aba3e460d 100755 --- a/configure +++ b/configure @@ -559,6 +559,7 @@ compare_exclusions host_shared stage2_werror_flag stage1_checking +stage1_cxxflags stage1_cflags MAINT MAINTAINER_MODE_FALSE @@ -14755,6 +14756,13 @@ case $build in *) stage1_cflags="-g -J" ;; esac ;; esac +stage1_cxxflags='$(STAGE1_CFLAGS)' +if test "$GCC" = yes; then + # Build stage 1 in C++98 mode to ensure that a C++98 compiler can still + # start the bootstrap. + stage1_cxxflags="$stage1_cxxflags -std=c++98" +fi + |