1 # $NetBSD: options.mk,v 1.1 2010/12/23 12:36:01 fhajny Exp $
3 PKG_OPTIONS_VAR
= PKG_OPTIONS.spidermonkey
4 PKG_SUPPORTED_OPTIONS
= threads unicode
5 PKG_SUGGESTED_OPTIONS
= # empty
7 .
include "../../mk/bsd.options.mk"
12 .if
!empty
(PKG_OPTIONS
:Mthreads
)
13 PTHREAD_AUTO_VARS
= yes
14 CFLAGS
+= -DJS_THREADSAFE
15 .
include "../../devel/nspr/buildlink3.mk"
16 .
include "../../mk/pthread.buildlink3.mk"
20 ### UTF8 string support
22 .if
!empty
(PKG_OPTIONS
:Municode
)
23 CFLAGS
+= -DJS_C_STRINGS_ARE_UTF8