Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libm Define HAVE_FENV_H on architectures that supp...



details:   https://anonhg.NetBSD.org/src/rev/e452b0890eb6
branches:  trunk
changeset: 794006:e452b0890eb6
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Mar 03 12:15:27 2014 +0000

description:
Define HAVE_FENV_H on architectures that support it.
What a mess, we need a central place for this!

diffstat:

 tests/lib/libm/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 31a45c33d335 -r e452b0890eb6 tests/lib/libm/Makefile
--- a/tests/lib/libm/Makefile   Mon Mar 03 12:12:18 2014 +0000
+++ b/tests/lib/libm/Makefile   Mon Mar 03 12:15:27 2014 +0000
@@ -1,9 +1,15 @@
-# $NetBSD: Makefile,v 1.20 2013/11/12 16:48:39 joerg Exp $
+# $NetBSD: Makefile,v 1.21 2014/03/03 12:15:27 martin Exp $
 
 .include <bsd.own.mk>
 
 TESTSDIR=      ${TESTSBASE}/lib/libm
 
+.if ${MACHINE} == "sparc" || ${MACHINE} == "i386" \
+       || ${MACHINE} == "amd64" || ${MACHINE_CPU} == "arm"     \
+       || ${MACHINE} == "sparc64"
+CPPFLAGS+=     -DHAVE_FENV_H
+.endif
+
 TESTS_C+=      t_acos
 TESTS_C+=      t_asin
 TESTS_C+=      t_atan



Home | Main Index | Thread Index | Old Index