summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-03-16 15:20:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-21 22:39:01 +0000
commitd566448b3d7b2fe3e9743795a2ef4bdc2b4d06a4 (patch)
tree7210ef455a812dd9c818ec98bba926aa23613a7e /meta/recipes-devtools/gcc
parent0ea1ee305bf75daaff60783baa22f086956b94aa (diff)
downloadpoky-d566448b3d7b2fe3e9743795a2ef4bdc2b4d06a4.tar.gz
gcc-target: Use --with-arch=native for target gcc
This should help gcc detect and use target ISA on x86_64 machines when -march is not used on cmdline [YOCTO #139] (From OE-Core rev: f9e410521c92e2458ba7e2ca63d28434618b9f25) 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>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-target.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
index 204f9475fc..34c1b2263b 100644
--- a/meta/recipes-devtools/gcc/gcc-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-target.inc
@@ -19,6 +19,7 @@ EXTRA_OECONF_append_armv6 = " --with-arch=armv6${ARMFPARCHEXT}"
19EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a${ARMFPARCHEXT}" 19EXTRA_OECONF_append_armv7a = " --with-arch=armv7-a${ARMFPARCHEXT}"
20EXTRA_OECONF_append_armv7ve = " --with-arch=armv7ve${ARMFPARCHEXT}" 20EXTRA_OECONF_append_armv7ve = " --with-arch=armv7ve${ARMFPARCHEXT}"
21EXTRA_OECONF_append_arc = " --with-cpu=${TUNE_PKGARCH}" 21EXTRA_OECONF_append_arc = " --with-cpu=${TUNE_PKGARCH}"
22EXTRA_OECONF_append_x86-64 = " --with-arch=native"
22 23
23# libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is 24# libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is
24# set in subdir gcc, so subdir libcc1 can't use it, export it here to 25# set in subdir gcc, so subdir libcc1 can't use it, export it here to