gcc/configure.ac: Fix cross build by using $(CFLAGS-$@) [PR100598]
authorTobias Burnus <tobias@codesourcery.com>
Tue, 18 May 2021 09:56:05 +0000 (11:56 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 18 May 2021 09:56:05 +0000 (11:56 +0200)
commit5116b54e4644cb0d7b99891c76f8f015097f6530
tree2d2b39a3bc8e1c5ccc7ad2f15f4a352c06e51cc4
parente1cca88019ab1208f8389606dd18a25cd50c20e1
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-$@).
gcc/configure
gcc/configure.ac