diff options
Diffstat (limited to 'lang/ossp-js/libm.mk')
-rw-r--r-- | lang/ossp-js/libm.mk | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lang/ossp-js/libm.mk b/lang/ossp-js/libm.mk new file mode 100644 index 00000000000..74f33fc1e15 --- /dev/null +++ b/lang/ossp-js/libm.mk @@ -0,0 +1,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 |