Richard Purdie 84401ce5fb [PATCH 1/5] Makefile.in: Ensure build CPP/CPPFLAGS is used for build targets
During cross compiling, CPP is being set to the target compiler even for
build targets. As an example, when building a cross compiler targetting
mingw, the config.log for libiberty in
build.x86_64-pokysdk-mingw32.i586-poky-linux/build-x86_64-linux/libiberty/config.log
shows:

configure:3786: checking how to run the C preprocessor
configure:3856: result: x86_64-pokysdk-mingw32-gcc -E --sysroot=[sysroot]/x86_64-nativesdk-mingw32-pokysdk-mingw32
configure:3876: x86_64-pokysdk-mingw32-gcc -E --sysroot=[sysroot]/x86_64-nativesdk-mingw32-pokysdk-mingw32 conftest.c
configure:3876: $? = 0

This is libiberty being built for the build environment, not the target one
(i.e. in build-x86_64-linux). As such it should be using the build environment's
gcc and not the target one. In the mingw case the system headers are quite
different leading to build failures related to not being able to include a
process.h file for pem-unix.c.

Further analysis shows the same issue occuring for CPPFLAGS too.

Fix this by adding support for CPP_FOR_BUILD and CPPFLAGS_FOR_BUILD which
for example, avoids mixing the mingw headers for host binaries on linux
systems.

2021-10-27 Richard Purdie <richard.purdie@linuxfoundation.org>

ChangeLog:

	* Makefile.tpl: Add CPP_FOR_BUILD and CPPFLAGS_FOR_BUILD support
	* Makefile.in: Regenerate.
	* configure: Regenerate.
	* configure.ac: Add CPP_FOR_BUILD and CPPFLAGS_FOR_BUILD support

gcc/ChangeLog:

	* configure: Regenerate.
	* configure.ac: Use CPPFLAGS_FOR_BUILD for GMPINC

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-10-28 10:42:49 -04:00
2021-10-27 00:16:33 +00:00
2021-09-20 00:16:21 +00:00
2021-10-21 00:16:29 +00:00
2021-08-31 00:16:50 +00:00
2021-10-23 00:16:26 +00:00
2021-09-22 00:16:28 +00:00
2021-09-28 00:16:21 +00:00
2021-06-15 00:16:37 +00:00
2021-10-23 00:16:26 +00:00
2021-07-22 00:16:46 +00:00
2021-10-23 00:16:26 +00:00
2021-08-18 00:16:48 +00:00
2021-10-22 00:16:31 +00:00
2021-10-23 00:16:26 +00:00
2021-10-23 00:16:26 +00:00
2021-10-28 00:16:39 +00:00
2021-10-28 00:16:39 +00:00
2021-10-19 00:16:23 +00:00
2021-10-28 00:16:39 +00:00
2021-10-23 00:16:26 +00:00
2021-06-18 00:16:58 +00:00
2021-01-06 00:16:55 +00:00
2021-10-20 00:16:43 +00:00
2021-10-01 00:16:27 +00:00
2021-06-09 00:16:30 +00:00
2021-10-09 00:16:26 +00:00
2021-01-06 00:16:55 +00:00
2021-10-27 00:16:33 +00:00
2021-01-06 00:16:55 +00:00
2021-09-14 00:16:23 +00:00
2021-05-15 00:16:27 +00:00
2021-01-06 00:16:55 +00:00
2021-06-24 16:51:40 +05:30
2021-10-27 00:16:33 +00:00
2021-01-05 16:04:14 -07:00
2021-10-26 16:28:04 -04:00
2021-10-22 15:43:50 -07:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 1.5 GiB
Languages
C++ 30.7%
C 30%
Ada 14.5%
D 6.1%
Go 5.7%
Other 12.5%