diff options
author | imp <imp@FreeBSD.org> | 2015-04-28 14:14:06 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2015-04-28 14:14:06 +0000 |
commit | 7e4eac0d943f5b165b483c311918e2f74d4f29bb (patch) | |
tree | 929a00b50bd1590f35ac01fcaa8efe5a2e127864 /lib/msun | |
parent | 2b3cb1d5dd4339976ca1748a29eb75c3fafd5eeb (diff) | |
download | FreeBSD-src-7e4eac0d943f5b165b483c311918e2f74d4f29bb.zip FreeBSD-src-7e4eac0d943f5b165b483c311918e2f74d4f29bb.tar.gz |
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.
Diffstat (limited to 'lib/msun')
-rw-r--r-- | lib/msun/tests/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/msun/tests/Makefile b/lib/msun/tests/Makefile index dde46be..0479cfb 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 |