diff mbox series

[5/7] gcc-runtime_8.1.bb: disable ifuncs in libatomic for arm arch

Message ID 747f38fd2c9e7c94d8b5c8e4427413ed44826a45.1528442551.git.raj.khem@gmail.com
State Accepted
Commit 015b0d8ed6aa766e8cc96d10218ac86a28728bf9
Headers show
Series Add GCC 8 recipes | expand

Commit Message

Khem Raj June 8, 2018, 7:28 a.m. UTC
This will solve the mcpu/march conflicts we get when -mcpu=cortex-a7
is passed on cmdline since it will become incompatible with default
ifuncs in libatomic which is using armv7-a

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta/recipes-devtools/gcc/gcc-runtime_8.1.bb | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.17.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-devtools/gcc/gcc-runtime_8.1.bb b/meta/recipes-devtools/gcc/gcc-runtime_8.1.bb
index 8f31e7792e..fe787174e8 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime_8.1.bb
+++ b/meta/recipes-devtools/gcc/gcc-runtime_8.1.bb
@@ -1,6 +1,9 @@ 
 require recipes-devtools/gcc/gcc-${PV}.inc
 require gcc-runtime.inc
 
+# Disable ifuncs for libatomic on arm conflicts -march/-mcpu
+EXTRA_OECONF_append_arm = " libat_cv_have_ifunc=no "
+
 FILES_libgomp-dev += "\
     ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/openacc.h \
 "