Module Name:    src
Committed By:   martin
Date:           Mon Mar  3 12:15:27 UTC 2014

Modified Files:
        src/tests/lib/libm: Makefile

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


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/tests/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libm/Makefile
diff -u src/tests/lib/libm/Makefile:1.20 src/tests/lib/libm/Makefile:1.21
--- src/tests/lib/libm/Makefile:1.20	Tue Nov 12 16:48:39 2013
+++ src/tests/lib/libm/Makefile	Mon Mar  3 12:15:27 2014
@@ -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

Reply via email to