| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.9 2014/06/04 14:24:37 richard Exp $ | | 1 | # $NetBSD: options.mk,v 1.10 2016/01/27 10:45:47 jperkin Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.perl | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.perl |
4 | PKG_OPTIONS_REQUIRED_GROUPS= perlbits | | 4 | PKG_OPTIONS_REQUIRED_GROUPS= perlbits |
5 | PKG_OPTIONS_GROUP.perlbits= 64bitauto 64bitint 64bitmore 64bitall 64bitnone | | 5 | PKG_OPTIONS_GROUP.perlbits= 64bitauto 64bitint 64bitmore 64bitall 64bitnone |
6 | PKG_SUPPORTED_OPTIONS= debug dtrace threads mstats | | 6 | PKG_SUPPORTED_OPTIONS= debug dtrace threads mstats |
7 | | | 7 | |
8 | CHECK_BUILTIN.pthread:= yes | | 8 | CHECK_BUILTIN.pthread:= yes |
9 | .include "../../mk/pthread.builtin.mk" | | 9 | .include "../../mk/pthread.builtin.mk" |
10 | CHECK_BUILTIN.pthread:= no | | 10 | CHECK_BUILTIN.pthread:= no |
11 | | | 11 | |
12 | # By default, build with threads only if the threads are native. | | 12 | # By default, build with threads only if the threads are native. |
13 | .if !empty(USE_BUILTIN.pthread:M[yY][eE][sS]) | | 13 | .if !empty(USE_BUILTIN.pthread:M[yY][eE][sS]) |
14 | PERL5_BUILD_THREADS_SUPPORT= yes | | 14 | PERL5_BUILD_THREADS_SUPPORT= yes |
| @@ -32,27 +32,27 @@ PKG_SUGGESTED_OPTIONS= threads | | | @@ -32,27 +32,27 @@ PKG_SUGGESTED_OPTIONS= threads |
32 | PKG_SUGGESTED_OPTIONS+= 64bitint | | 32 | PKG_SUGGESTED_OPTIONS+= 64bitint |
33 | . endif | | 33 | . endif |
34 | .elif ${OPSYS} == "AIX" | | 34 | .elif ${OPSYS} == "AIX" |
35 | . if defined(ABI) && ${ABI} == "64" | | 35 | . if defined(ABI) && ${ABI} == "64" |
36 | PKG_SUGGESTED_OPTIONS+= 64bitall | | 36 | PKG_SUGGESTED_OPTIONS+= 64bitall |
37 | . else | | 37 | . else |
38 | PKG_SUGGESTED_OPTIONS+= 64bitnone | | 38 | PKG_SUGGESTED_OPTIONS+= 64bitnone |
39 | . endif | | 39 | . endif |
40 | .else | | 40 | .else |
41 | PKG_SUGGESTED_OPTIONS+= 64bitauto | | 41 | PKG_SUGGESTED_OPTIONS+= 64bitauto |
42 | .endif | | 42 | .endif |
43 | | | 43 | |
44 | # Note: dtrace command on Darwin lacks required -G option | | 44 | # Note: dtrace command on Darwin lacks required -G option |
45 | .if !empty(MACHINE_PLATFORM:MSunOS-1[123456789].*-*) | | 45 | .if !empty(MACHINE_PLATFORM:MSunOS-5.1[1-9]-*) |
46 | PKG_SUGGESTED_OPTIONS+= dtrace | | 46 | PKG_SUGGESTED_OPTIONS+= dtrace |
47 | .endif | | 47 | .endif |
48 | | | 48 | |
49 | .include "../../mk/bsd.options.mk" | | 49 | .include "../../mk/bsd.options.mk" |
50 | | | 50 | |
51 | .if !empty(PKG_OPTIONS:Mthreads) | | 51 | .if !empty(PKG_OPTIONS:Mthreads) |
52 | . include "../../mk/pthread.buildlink3.mk" | | 52 | . include "../../mk/pthread.buildlink3.mk" |
53 | CONFIGURE_ARGS+= -Duseithreads | | 53 | CONFIGURE_ARGS+= -Duseithreads |
54 | CFLAGS+= ${PTHREAD_CFLAGS} | | 54 | CFLAGS+= ${PTHREAD_CFLAGS} |
55 | LDFLAGS+= ${PTHREAD_LDFLAGS} | | 55 | LDFLAGS+= ${PTHREAD_LDFLAGS} |
56 | LIBSWANTED+= ${PTHREAD_LIBS:M-l*:S/^-l//} | | 56 | LIBSWANTED+= ${PTHREAD_LIBS:M-l*:S/^-l//} |
57 | . if ${OBJECT_FMT} == "XCOFF" | | 57 | . if ${OBJECT_FMT} == "XCOFF" |
58 | PERL5_RPATH_THREAD=-thread | | 58 | PERL5_RPATH_THREAD=-thread |