aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2020-08-20 21:59:00 +0200
committerTobias Burnus <tobias@codesourcery.com>2020-08-20 21:59:00 +0200
commit7ffcf5d61174dda1f39a623e15f7e5d6b98bbafc (patch)
tree5a4040f6ed10dc25d825c090cf2de953b80bd7be /configure.ac
parent5e9ad288eb6fb366142b166e7985d16727b398e1 (diff)
downloadgcc-7ffcf5d61174dda1f39a623e15f7e5d6b98bbafc.zip
gcc-7ffcf5d61174dda1f39a623e15f7e5d6b98bbafc.tar.gz
gcc-7ffcf5d61174dda1f39a623e15f7e5d6b98bbafc.tar.bz2
configure: Also check C++11 (flags) for ${build} compiler not only for ${host}
config/ChangeLog: PR bootstrap/96612 * ax_cxx_compile_stdcxx.m4: Add fourth argument to check also the CXX_FOR_BUILD compiler. ChangeLog: PR bootstrap/96612 * configure.ac: Run AX_CXX_COMPILE_STDCXX also for ${build} compiler, if not the same as ${host}. * configure: Regenerate.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1a53ed4..392389f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1470,6 +1470,10 @@ if test "$enable_bootstrap:$GXX" = "yes:yes"; then
CXX="$CXX -std=c++11"
elif test "$have_compiler" = yes; then
AX_CXX_COMPILE_STDCXX(11)
+
+ if test "${build}" != "${host}"; then
+ AX_CXX_COMPILE_STDCXX(11, [], [], [_FOR_BUILD])
+ fi
fi
# Used for setting $lt_cv_objdir