[oe-commits] Khem Raj : glibc: Disable -mfpmath=sse during build for x86

git at git.openembedded.org git at git.openembedded.org
Wed Feb 18 07:51:05 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 8076a73dce1b0d9d0ae4e0963c7ac53419d079ff
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8076a73dce1b0d9d0ae4e0963c7ac53419d079ff

Author: Khem Raj <raj.khem at gmail.com>
Date:   Mon Feb  2 21:00:49 2015 -0800

glibc: Disable -mfpmath=sse during build for x86

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 <raj.khem at gmail.com>

---

 meta/recipes-core/glibc/glibc_2.21.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/glibc/glibc_2.21.bb b/meta/recipes-core/glibc/glibc_2.21.bb
index ce4fc01..eeb7135 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 := "${@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



More information about the Openembedded-commits mailing list