| @@ -1,87 +1,88 @@ | | | @@ -1,87 +1,88 @@ |
1 | # $NetBSD: SunOS.mk,v 1.47 2013/02/01 12:25:16 hans Exp $ | | 1 | # $NetBSD: SunOS.mk,v 1.48 2013/02/01 12:36:06 hans Exp $ |
2 | # | | 2 | # |
3 | # Variable definitions for the SunOS/Solaris operating system. | | 3 | # Variable definitions for the SunOS/Solaris operating system. |
4 | | | 4 | |
5 | ECHO_N?= ${ECHO} -n | | 5 | ECHO_N?= ${ECHO} -n |
6 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake | | 6 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake |
7 | PKGLOCALEDIR?= lib | | 7 | PKGLOCALEDIR?= lib |
8 | PS?= /bin/ps | | 8 | PS?= /bin/ps |
9 | # XXX: default from defaults/mk.conf. Verify/correct for this platform | | 9 | # XXX: default from defaults/mk.conf. Verify/correct for this platform |
10 | # and remove this comment. | | 10 | # and remove this comment. |
11 | SU?= /usr/bin/su | | 11 | SU?= /usr/bin/su |
12 | TYPE?= /usr/bin/type | | 12 | TYPE?= /usr/bin/type |
13 | | | 13 | |
14 | CPP_PRECOMP_FLAGS?= # unset | | 14 | CPP_PRECOMP_FLAGS?= # unset |
15 | DEF_UMASK?= 022 | | 15 | DEF_UMASK?= 022 |
16 | DEFAULT_SERIAL_DEVICE?= /dev/null | | 16 | DEFAULT_SERIAL_DEVICE?= /dev/null |
17 | EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table | | 17 | EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table |
18 | GROUPADD?= /usr/sbin/groupadd | | 18 | GROUPADD?= /usr/sbin/groupadd |
19 | NOLOGIN?= /usr/bin/false | | 19 | NOLOGIN?= /usr/bin/false |
20 | ROOT_CMD?= ${SU} - root -c | | 20 | ROOT_CMD?= ${SU} - root -c |
21 | ROOT_GROUP?= root | | 21 | ROOT_GROUP?= root |
22 | ROOT_USER?= root | | 22 | ROOT_USER?= root |
23 | SERIAL_DEVICES?= /dev/null | | 23 | SERIAL_DEVICES?= /dev/null |
24 | ULIMIT_CMD_datasize?= ulimit -d `${SETENV} LC_MESSAGES=C ulimit -H -d` | | 24 | ULIMIT_CMD_datasize?= ulimit -d `${SETENV} LC_MESSAGES=C ulimit -H -d` |
25 | ULIMIT_CMD_stacksize?= ulimit -s `${SETENV} LC_MESSAGES=C ulimit -H -s` | | 25 | ULIMIT_CMD_stacksize?= ulimit -s `${SETENV} LC_MESSAGES=C ulimit -H -s` |
26 | ULIMIT_CMD_memorysize?= ulimit -v `${SETENV} LC_MESSAGES=C ulimit -H -v` | | 26 | ULIMIT_CMD_memorysize?= ulimit -v `${SETENV} LC_MESSAGES=C ulimit -H -v` |
27 | USERADD?= /usr/sbin/useradd | | 27 | USERADD?= /usr/sbin/useradd |
28 | | | 28 | |
29 | .if exists(/usr/openwin/include/X11/X.h) | | 29 | .if exists(/usr/openwin/include/X11/X.h) |
30 | X11_TYPE?= native | | 30 | X11_TYPE?= native |
31 | .else | | 31 | .else |
32 | X11_TYPE?= modular | | 32 | X11_TYPE?= modular |
33 | .endif | | 33 | .endif |
34 | .if ${X11_TYPE} == native | | 34 | .if ${X11_TYPE} == native |
35 | MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type | | 35 | MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type |
36 | .else | | 36 | .else |
37 | MOTIF_TYPE_DEFAULT?= motif | | 37 | MOTIF_TYPE_DEFAULT?= motif |
38 | .endif | | 38 | .endif |
39 | | | 39 | |
40 | # Builtin defaults which make sense for this platform. | | 40 | # Builtin defaults which make sense for this platform. |
41 | PREFER.solaris-pam?= native | | 41 | PREFER.solaris-pam?= native |
| | | 42 | PREFER.openssl?= pkgsrc |
42 | | | 43 | |
43 | _OPSYS_EMULDIR.solaris= # empty | | 44 | _OPSYS_EMULDIR.solaris= # empty |
44 | _OPSYS_EMULDIR.solaris32= # empty | | 45 | _OPSYS_EMULDIR.solaris32= # empty |
45 | _OPSYS_EMULDIR.sunos= # empty | | 46 | _OPSYS_EMULDIR.sunos= # empty |
46 | | | 47 | |
47 | .if exists(/usr/include/netinet/ip6.h) | | 48 | .if exists(/usr/include/netinet/ip6.h) |
48 | _OPSYS_HAS_INET6= yes # IPv6 is standard | | 49 | _OPSYS_HAS_INET6= yes # IPv6 is standard |
49 | .else | | 50 | .else |
50 | _OPSYS_HAS_INET6= no # IPv6 is not standard | | 51 | _OPSYS_HAS_INET6= no # IPv6 is not standard |
51 | .endif | | 52 | .endif |
52 | _OPSYS_HAS_JAVA= no # Java is not standard | | 53 | _OPSYS_HAS_JAVA= no # Java is not standard |
53 | _OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages | | 54 | _OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages |
54 | _OPSYS_HAS_OSSAUDIO= no # libossaudio is available | | 55 | _OPSYS_HAS_OSSAUDIO= no # libossaudio is available |
55 | _OPSYS_PERL_REQD= # no base version of perl required | | 56 | _OPSYS_PERL_REQD= # no base version of perl required |
56 | _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads | | 57 | _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads |
57 | _OPSYS_SHLIB_TYPE= ELF # shared lib type | | 58 | _OPSYS_SHLIB_TYPE= ELF # shared lib type |
58 | _OPSYS_MISSING_FEATURES=asprintf | | 59 | _OPSYS_MISSING_FEATURES=asprintf |
59 | _PATCH_CAN_BACKUP= yes # native patch(1) can make backups | | 60 | _PATCH_CAN_BACKUP= yes # native patch(1) can make backups |
60 | _PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix | | 61 | _PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix |
61 | _USE_RPATH= yes # add rpath to LDFLAGS | | 62 | _USE_RPATH= yes # add rpath to LDFLAGS |
62 | | | 63 | |
63 | # flags passed to the linker to extract all symbols from static archives. | | 64 | # flags passed to the linker to extract all symbols from static archives. |
64 | # this is the standard Solaris linker, /usr/ccs/bin/ld. The use of GNU | | 65 | # this is the standard Solaris linker, /usr/ccs/bin/ld. The use of GNU |
65 | # ld is not currently supported. | | 66 | # ld is not currently supported. |
66 | _OPSYS_WHOLE_ARCHIVE_FLAG= -z allextract | | 67 | _OPSYS_WHOLE_ARCHIVE_FLAG= -z allextract |
67 | _OPSYS_NO_WHOLE_ARCHIVE_FLAG= -z defaultextract | | 68 | _OPSYS_NO_WHOLE_ARCHIVE_FLAG= -z defaultextract |
68 | | | 69 | |
69 | # Solaris has /usr/include/iconv.h, but it's not GNU iconv, so mark it | | 70 | # Solaris has /usr/include/iconv.h, but it's not GNU iconv, so mark it |
70 | # incompatible. | | 71 | # incompatible. |
71 | _INCOMPAT_ICONV= SunOS-*-* | | 72 | _INCOMPAT_ICONV= SunOS-*-* |
72 | | | 73 | |
73 | _STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip | | 74 | _STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip |
74 | _STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip | | 75 | _STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip |
75 | | | 76 | |
76 | PKG_TOOLS_BIN?= ${LOCALBASE}/sbin | | 77 | PKG_TOOLS_BIN?= ${LOCALBASE}/sbin |
77 | | | 78 | |
78 | .if (${MACHINE_ARCH} == "x86_64") | | 79 | .if (${MACHINE_ARCH} == "x86_64") |
79 | LIBABISUFFIX= /amd64 | | 80 | LIBABISUFFIX= /amd64 |
80 | .endif | | 81 | .endif |
81 | | | 82 | |
82 | _OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk | | 83 | _OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk |
83 | | | 84 | |
84 | # check for maximum command line length and set it in configure's environment, | | 85 | # check for maximum command line length and set it in configure's environment, |
85 | # to avoid a test required by the libtool script that takes forever. | | 86 | # to avoid a test required by the libtool script that takes forever. |
86 | # FIXME: Adjust to work on this system and enable the lines below. | | 87 | # FIXME: Adjust to work on this system and enable the lines below. |
87 | #_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax | | 88 | #_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax |