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.
This commit is contained in:
Warner Losh 2015-04-28 14:14:06 +00:00
parent 361fffd228
commit c6b992ed3a

View File

@ -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