On alpha compile the math library with dynamic rounding mode instead
of fixed normal IEEE rounding mode. This makes function that depends on the current rounding mode, such as rint(3), just work.
This commit is contained in:
parent
6799d6e664
commit
92562600d4
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.120 2011/09/17 10:51:52 jruoho Exp $
|
||||
# $NetBSD: Makefile,v 1.121 2012/03/09 08:03:53 njoly Exp $
|
||||
#
|
||||
# @(#)Makefile 5.1beta 93/09/24
|
||||
#
|
||||
@ -117,6 +117,10 @@ WARNS?=4
|
||||
.PATH: ${.CURDIR}/src
|
||||
.PATH: ${.CURDIR}/noieee_src
|
||||
|
||||
.if (${MACHINE_ARCH} == "alpha")
|
||||
CFLAGS+= -mfp-rounding-mode=d
|
||||
.endif
|
||||
|
||||
.if (${MACHINE_ARCH} != "vax")
|
||||
CPPFLAGS+= -D_MULTI_LIBM -D_POSIX_MODE
|
||||
# XXX noieee libm is gross
|
||||
|
Loading…
Reference in New Issue
Block a user