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:
parent
361fffd228
commit
c6b992ed3a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user