]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
gcc: set the default target arch
authorDaniel McGregor <daniel.mcgregor@vecima.com>
Wed, 28 Sep 2022 22:13:19 +0000 (16:13 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Sep 2022 20:13:36 +0000 (21:13 +0100)
commit52b952e474e655f8b4b6501813d57e20c9f02ba2
treef61b674eb49e76ffd9d51024d4f5d7ab41624a9c
parent9859a8124a0c09ac38d476445e7df7097f41d153
gcc: set the default target arch

The default x86-64 architecture for target gcc (ie, the one in poky
build appliances) is native. Since we have a variety of build systems
it will occasionally produce instructions that don't work on all of
our development system.

Instead, set gcc's default architecture to the one specified in
TUNE_CC_ARCH, that guarantees that gcc-runtime and any binaries
produced are compatible with the target machine type.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-common.inc
meta/recipes-devtools/gcc/gcc-target.inc