From c6b992ed3ac6e5e8e4e6424037c4cc76ed5d8d2e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 28 Apr 2015 14:14:06 +0000 Subject: [PATCH] The presence/absence of CPU features should be tested with MACHINE_CPUARCH or MACHINE_ARCH, not MACHINE. The latter is for kernel only things. Also, I think this should be unconditional since all our architectures have long double support, but I don't have time to test that thoroughly so just add a comment to that effect. --- lib/msun/tests/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/msun/tests/Makefile b/lib/msun/tests/Makefile index dde46be8a39..0479cfb6380 100644 --- a/lib/msun/tests/Makefile +++ b/lib/msun/tests/Makefile @@ -9,7 +9,9 @@ TESTSDIR= ${TESTSBASE}/lib/msun # All architectures on FreeBSD have fenv.h CFLAGS+= -DHAVE_FENV_H -.if ${MACHINE} == "amd64" || ${MACHINE} == "i386" +# Not sure why this isn't defined for all architectures, since most +# have long double. +.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" CFLAGS+= -D__HAVE_LONG_DOUBLE .endif