diff options
author | bjs <bjs> | 2008-02-06 10:08:01 +0000 |
---|---|---|
committer | bjs <bjs> | 2008-02-06 10:08:01 +0000 |
commit | 9162f6ac6e7c8269c5780bc49bbd37df0f35aef3 (patch) | |
tree | 028e9e8d8f1427e026fb56737460a16a6dd45983 /lang/ossp-js/libm.mk | |
parent | 8351b09e181785ae26dec8eb6c513adc6ec762cb (diff) | |
download | pkgsrc-9162f6ac6e7c8269c5780bc49bbd37df0f35aef3.tar.gz |
Re-factor fdlibm stuff so that it gets defined as appropriate during
a build. Bump rev.
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 |