Skip to contentSkip to conversation

gcc-target: Use --with-arch=native for target gcc

PATCH New Khem Raj 1 participant 1 message Mar 16, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 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]

---
 meta/recipes-devtools/gcc/gcc-target.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/gcc/gcc-target.inc +1 -0
index 7cf819272f..aa274bb936 100644
@@ -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
Signature · 1 line
2.25.1