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=becb228b430d1f3816cfa5b7587d2978ce6936ed;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