blob: 74f33fc1e15ca6b51aa11ca8c7c97319ff0510cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# $NetBSD: libm.mk,v 1.1 2008/02/06 10:08:01 bjs Exp $
#
# XXX I took this from jslibmath.h. If this is not correct, please feel
# free to change it. Our lang/spidermonkey package never uses
# the Sun math library, and I'm not sure if this is correct.
#
.include "../../mk/bsd.fast.prefs.mk"
JS_FDLIBM_PLATFORMS= Linux-*-* IRIX-*-* SunOS-*-* \
Solaris-*-* AIX-*-* HPUX-*-*
JS_FDLIBM_MATH_REQUESTED?= no
.for plat in ${JS_FDLIBM_PLATFORMS}
. if !empty(MACHINE_PLATFORM:M${plat})
JS_FDLIBM_MATH_REQUESTED= yes
. endif
.endfor
.if !empty(JS_FDLIBM_MATH_REQUESTED:M[Yy][Ee][Ss])
CPPFLAGS+= -DJS_FDLIBM_MATH_REQUESTED=1
.else
CPPFLAGS+= -DJS_FDLIBM_MATH_REQUESTED=0
.endif
|