]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-target: Use --with-arch=native for target gcc
authorKhem Raj <raj.khem@gmail.com>
Mon, 16 Mar 2020 22:20:56 +0000 (15:20 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 Mar 2020 22:38:19 +0000 (22:38 +0000)
This should help gcc detect and use target ISA on x86_64 machines when
-march is not used on cmdline

[YOCTO #139]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-target.inc

index 204f9475fc55531207eba6e561037a11ef7c0074..34c1b2263b7bb0152949462ccd21bbac1c5dd098 100644 (file)
@@ -19,6 +19,7 @@ EXTRA_OECONF_append_armv6 = " --with-arch=armv6${ARMFPARCHEXT}"
 EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a${ARMFPARCHEXT}"
 EXTRA_OECONF_append_armv7ve = " --with-arch=armv7ve${ARMFPARCHEXT}"
 EXTRA_OECONF_append_arc = " --with-cpu=${TUNE_PKGARCH}"
+EXTRA_OECONF_append_x86-64 = " --with-arch=native"
 
 # libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is
 # set in subdir gcc, so subdir libcc1 can't use it, export it here to