From: Stan Shebs Date: Tue, 23 Jan 2018 17:40:20 +0000 (-0800) Subject: clang requires -mno-see for 387 math X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a52f7accbd9e1a1c915b33fa8ec46c446ee2ff0;p=thirdparty%2Fglibc.git clang requires -mno-see for 387 math --- diff --git a/sysdeps/x86/fpu/Makefile b/sysdeps/x86/fpu/Makefile index 600e42c3db1..4fac32d828e 100644 --- a/sysdeps/x86/fpu/Makefile +++ b/sysdeps/x86/fpu/Makefile @@ -9,6 +9,9 @@ CFLAGS-test-fenv-sse.c += -msse2 -mfpmath=sse CFLAGS-test-fenv-clear-sse.c += -msse2 -mfpmath=sse CFLAGS-test-fenv-sse-2.c += -msse2 -mfpmath=sse CFLAGS-test-flt-eval-method-387.c += -fexcess-precision=standard -mfpmath=387 +ifeq ($(with-clang),yes) +CFLAGS-test-flt-eval-method-387.c += -mno-sse +endif CFLAGS-test-flt-eval-method-sse.c += -fexcess-precision=standard -msse2 \ -mfpmath=sse endif