driver: Fix several memory leaks [PR63854]
[gcc.git] / configure.ac
index 1a53ed418e4d97606356b14a17b50186c79adcd3..392389fb2fb8097d08815259455ff2dc58b4daf3 100644 (file)
@@ -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