From 518a8a8bfdf07b1508401e60f2dfcf6ce6bdc123 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 2 Feb 2015 21:00:49 -0800 Subject: glibc: Disable -mfpmath=sse during build for x86_64 Fixes errors like > /data/poky-master/tmp/work/corei7-64-poky-linux/glibc/2.21-r0/build-x86_64-poky-linux/elf/dl-open.os > | dl-caller.c:1:0: error: SSE instruction set disabled, using 387 > arithmetics [-Werror] > | /* Check whether caller comes from the right place. > | ^ > | dl-open.c:1:0: error: SSE instruction set disabled, using 387 > arithmetics > [-Werror] Change-Id: Ib4e745828ce9fb4eef94363bc55556448ebd943c Signed-off-by: Khem Raj --- meta/recipes-core/glibc/glibc_2.21.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta') diff --git a/meta/recipes-core/glibc/glibc_2.21.bb b/meta/recipes-core/glibc/glibc_2.21.bb index ce4fc015d2..c76b0a2667 100644 --- a/meta/recipes-core/glibc/glibc_2.21.bb +++ b/meta/recipes-core/glibc/glibc_2.21.bb @@ -105,6 +105,7 @@ do_patch_append() { TUNE_CCARGS_mips := "${@oe_filter_out('-march=mips32', '${TUNE_CCARGS}', d)}" TUNE_CCARGS_mipsel := "${@oe_filter_out('-march=mips32', '${TUNE_CCARGS}', d)}" +TUNE_CCARGS_x86-64 := "${@oe_filter_out('-mfpmath=sse', '${TUNE_CCARGS}', d)}" do_fix_readlib_c () { sed -i -e 's#OECORE_KNOWN_INTERPRETER_NAMES#${EGLIBC_KNOWN_INTERPRETER_NAMES}#' ${S}/elf/readlib.c -- cgit 1.2.3-korg