diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2020-08-20 21:59:00 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2020-08-20 21:59:00 +0200 |
commit | 7ffcf5d61174dda1f39a623e15f7e5d6b98bbafc (patch) | |
tree | 5a4040f6ed10dc25d825c090cf2de953b80bd7be /configure.ac | |
parent | libstdc++: Make incrementable<__int128> satisfied in strict mode (diff) | |
download | gcc-7ffcf5d61174dda1f39a623e15f7e5d6b98bbafc.tar.gz gcc-7ffcf5d61174dda1f39a623e15f7e5d6b98bbafc.tar.bz2 gcc-7ffcf5d61174dda1f39a623e15f7e5d6b98bbafc.tar.xz |
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.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1a53ed418e4..392389fb2fb 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1470,6 +1470,10 @@ if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |||
1470 | CXX="$CXX -std=c++11" | 1470 | CXX="$CXX -std=c++11" |
1471 | elif test "$have_compiler" = yes; then | 1471 | elif test "$have_compiler" = yes; then |
1472 | AX_CXX_COMPILE_STDCXX(11) | 1472 | AX_CXX_COMPILE_STDCXX(11) |
1473 | |||
1474 | if test "${build}" != "${host}"; then | ||
1475 | AX_CXX_COMPILE_STDCXX(11, [], [], [_FOR_BUILD]) | ||
1476 | fi | ||
1473 | fi | 1477 | fi |
1474 | 1478 | ||
1475 | # Used for setting $lt_cv_objdir | 1479 | # Used for setting $lt_cv_objdir |