https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100598
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:5116b54e4644cb0d7b99891c76f8f015097f6530 commit r12-872-g5116b54e4644cb0d7b99891c76f8f015097f6530 Author: Tobias Burnus <tob...@codesourcery.com> Date: Tue May 18 11:56:05 2021 +0200 gcc/configure.ac: Fix cross build by using $(CFLAGS-$@) [PR100598] BUILD_CFLAGS is set by configure; by default, BUILD_CFLAGS = $(ALL_CFLAGS) is used. The latter contains (see gcc/Makefile.in) $(CFLAGS-$@), which is used to pass .o-file specific flags to the compiler. For cross builds, BUILD_CFLAGS is constructed in configure{,.ac} and missed the $(CFLAGS-$@) - despite the comment above ALL_CFLAGS that configure.ac might have to kept in sync. gcc/ChangeLog: PR other/100598 * configure: Regenerate. * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).