| @@ -1,34 +1,34 @@ | | | @@ -1,34 +1,34 @@ |
1 | # $NetBSD: options.mk,v 1.9 2015/12/09 21:00:47 asau Exp $ | | 1 | # $NetBSD: options.mk,v 1.10 2016/07/05 01:26:59 dholland Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ecl | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.ecl |
4 | PKG_SUPPORTED_OPTIONS+= debug threads unicode ffi clx | | 4 | PKG_SUPPORTED_OPTIONS+= debug threads unicode ffi clx |
5 | PKG_SUGGESTED_OPTIONS+= unicode ffi clx | | 5 | PKG_SUGGESTED_OPTIONS+= unicode ffi clx |
6 | # Unicode support proved to break Axioms. | | 6 | # Unicode support proved to break Axioms. |
7 | # Threads are off, since threaded ECL requires threads support | | 7 | # Threads are off, since threaded ECL requires threads support |
8 | # in Boehm GC (off by default). | | 8 | # in Boehm GC (off by default). |
9 | | | 9 | |
10 | .include "../../mk/bsd.options.mk" | | 10 | .include "../../mk/bsd.options.mk" |
11 | | | 11 | |
12 | PLIST_SRC= PLIST # default value | | 12 | PLIST_SRC= PLIST # default value |
13 | | | 13 | |
14 | .if !empty(PKG_OPTIONS:Mdebug) | | 14 | .if !empty(PKG_OPTIONS:Mdebug) |
15 | CONFIGURE_ARGS+= --enable-debug | | 15 | CONFIGURE_ARGS+= --enable-debug |
16 | .endif | | 16 | .endif |
17 | | | 17 | |
18 | .if !empty(PKG_OPTIONS:Mthreads) | | 18 | .if !empty(PKG_OPTIONS:Mthreads) |
19 | CONFIGURE_ARGS+= --enable-threads | | 19 | CONFIGURE_ARGS+= --enable-threads |
20 | CONFIGURE_ENV+= THREAD_CFLAGS=${PTHREAD_CFLAGS:Q} | | 20 | CONFIGURE_ENV+= THREAD_CFLAGS=${PTHREAD_CFLAGS:Q} |
21 | CONFIGURE_ENV+= THREAD_LDLAGS=${BUILDLINK_LDLAGS.pthread:Q} | | 21 | CONFIGURE_ENV+= THREAD_LDFLAGS=${BUILDLINK_LDFLAGS.pthread:Q} |
22 | CONFIGURE_ENV+= THREAD_LIBS=${BUILDLINK_LIBS.pthread:Q} | | 22 | CONFIGURE_ENV+= THREAD_LIBS=${BUILDLINK_LIBS.pthread:Q} |
23 | # XXX Although NetBSD-6+ supports TLS, ECL oddly crashes on startup | | 23 | # XXX Although NetBSD-6+ supports TLS, ECL oddly crashes on startup |
24 | # on NetBSD-6 when it's used here. Untested yet with NetBSD-7. | | 24 | # on NetBSD-6 when it's used here. Untested yet with NetBSD-7. |
25 | .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "Darwin" | | 25 | .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "Darwin" |
26 | CONFIGURE_ARGS+= --with-__thread=yes | | 26 | CONFIGURE_ARGS+= --with-__thread=yes |
27 | .else | | 27 | .else |
28 | CONFIGURE_ARGS+= --with-__thread=no | | 28 | CONFIGURE_ARGS+= --with-__thread=no |
29 | .endif | | 29 | .endif |
30 | .include "../../mk/pthread.buildlink3.mk" | | 30 | .include "../../mk/pthread.buildlink3.mk" |
31 | .else | | 31 | .else |
32 | CONFIGURE_ARGS+= --disable-threads | | 32 | CONFIGURE_ARGS+= --disable-threads |
33 | .endif | | 33 | .endif |
34 | | | 34 | |