[oe-commits] [openembedded-core] 03/04: gcc-target: Use --with-arch=native for target gcc

git at git.openembedded.org git at git.openembedded.org
Fri Mar 20 00:03:58 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 23ba88896a1fafe05c9c4e223f2c525a9cb7cb08
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Mon Mar 16 15:20:56 2020 -0700

    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 <raj.khem at gmail.com>
    Cc: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/gcc/gcc-target.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
index 204f947..34c1b22 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list