From: Khem Raj Date: Mon, 16 Mar 2020 22:20:56 +0000 (-0700) Subject: gcc-target: Use --with-arch=native for target gcc X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~11502 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9e410521c92e2458ba7e2ca63d28434618b9f25;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Khem Raj Cc: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index 204f9475fc5..34c1b2263b7 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}" 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