summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc/0015-When-disabling-SSE-also-make-sure-that-fpmath-is-not.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0015-When-disabling-SSE-also-make-sure-that-fpmath-is-not.patch')
-rw-r--r--meta/recipes-core/glibc/glibc/0015-When-disabling-SSE-also-make-sure-that-fpmath-is-not.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc/0015-When-disabling-SSE-also-make-sure-that-fpmath-is-not.patch b/meta/recipes-core/glibc/glibc/0015-When-disabling-SSE-also-make-sure-that-fpmath-is-not.patch
new file mode 100644
index 0000000000..4b261ca1ef
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/0015-When-disabling-SSE-also-make-sure-that-fpmath-is-not.patch
@@ -0,0 +1,32 @@
1From f058c884dd26d10c94550ca5252ed6576614d659 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 19 Feb 2015 03:23:45 +0000
4Subject: [PATCH 15/27] When disabling SSE also make sure that fpmath is not
5 set to use SSE as well
6
7This fixes errors when we inject sse options through CFLAGS and now
8that we have -Werror turned on by default this warning turns to become
9error on x86
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12
13Upstream-Status: Pending
14---
15 sysdeps/x86/Makefile | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile
19index 19f5eca..827ea71 100644
20--- a/sysdeps/x86/Makefile
21+++ b/sysdeps/x86/Makefile
22@@ -1,6 +1,6 @@
23 ifeq ($(subdir),elf)
24 CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\
25- -mno-sse -mno-mmx)
26+ -mno-sse -mno-mmx -mfpmath=387)
27
28 tests-special += $(objpfx)tst-ld-sse-use.out
29 $(objpfx)tst-ld-sse-use.out: ../sysdeps/x86/tst-ld-sse-use.sh $(objpfx)ld.so
30--
312.1.4
32