1 # $NetBSD: SunOS.mk,v 1.49 2013/03/01 16:58:51 jperkin Exp $
3 # Variable definitions for the SunOS/Solaris operating system.
6 IMAKE_MAKE?
= ${MAKE} # program which gets invoked by imake
9 # XXX: default from defaults/mk.conf. Verify/correct for this platform
10 # and remove this comment.
14 CPP_PRECOMP_FLAGS?
= # unset
16 DEFAULT_SERIAL_DEVICE?
= /dev
/null
17 EXPORT_SYMBOLS_LDFLAGS?
= # Don't add symbols to the dynamic symbol table
18 GROUPADD?
= /usr
/sbin
/groupadd
19 NOLOGIN?
= /usr
/bin
/false
20 ROOT_CMD?
= ${SU} - root
-c
23 SERIAL_DEVICES?
= /dev
/null
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`
26 ULIMIT_CMD_memorysize?
= ulimit
-v
`${SETENV} LC_MESSAGES=C ulimit -H -v`
27 USERADD?
= /usr
/sbin
/useradd
29 .if exists
(/usr
/openwin
/include/X11
/X.h
)
34 .if
${X11_TYPE} == native
35 MOTIF_TYPE_DEFAULT?
= dt
# default 2.0 compatible libs type
37 MOTIF_TYPE_DEFAULT?
= motif
40 # Builtin defaults which make sense for this platform.
41 PREFER.solaris-pam?
= native
42 PREFER.openssl?
= pkgsrc
44 _OPSYS_EMULDIR.solaris
= # empty
45 _OPSYS_EMULDIR.solaris32
= # empty
46 _OPSYS_EMULDIR.sunos
= # empty
48 .if exists
(/usr
/include/netinet
/ip6.h
)
49 _OPSYS_HAS_INET6
= yes
# IPv6 is standard
51 _OPSYS_HAS_INET6
= no
# IPv6 is not standard
53 _OPSYS_HAS_JAVA
= no
# Java is not standard
54 _OPSYS_HAS_MANZ
= no
# no MANZ for gzipping of man pages
55 _OPSYS_HAS_OSSAUDIO
= no
# libossaudio is available
56 _OPSYS_PERL_REQD
= # no base version of perl required
57 _OPSYS_PTHREAD_AUTO
= no
# -lpthread needed for pthreads
58 _OPSYS_SHLIB_TYPE
= ELF
# shared lib type
59 _OPSYS_MISSING_FEATURES
=asprintf
60 _PATCH_CAN_BACKUP
= yes
# native patch(1) can make backups
61 _PATCH_BACKUP_ARG?
= -b
-V simple
-z
# switch to patch(1) for backup suffix
62 _USE_RPATH
= yes
# add rpath to LDFLAGS
64 # flags passed to the linker to extract all symbols from static archives.
65 # this is the standard Solaris linker, /usr/ccs/bin/ld. The use of GNU
66 # ld is not currently supported.
67 _OPSYS_WHOLE_ARCHIVE_FLAG
= -z allextract
68 _OPSYS_NO_WHOLE_ARCHIVE_FLAG
= -z defaultextract
70 # Solaris has /usr/include/iconv.h, but it's not GNU iconv, so mark it
72 _INCOMPAT_ICONV
= SunOS-
*-*
74 _STRIPFLAG_CC?
= ${_INSTALL_UNSTRIPPED
:D
:U-s
} # cc(1) option to strip
75 _STRIPFLAG_INSTALL?
= ${_INSTALL_UNSTRIPPED
:D
:U-s
} # install(1) option to strip
77 PKG_TOOLS_BIN?
= ${LOCALBASE}/sbin
79 .if
${MACHINE_ARCH} == "x86_64"
81 _OPSYS_SYSTEM_RPATH?
= /lib
/64:/usr
/lib
/64
83 _OPSYS_SYSTEM_RPATH?
= /lib
:/usr
/lib
85 _OPSYS_LIB_DIRS?
= /lib
${LIBABISUFFIX} /usr
/lib
${LIBABISUFFIX}
86 _OPSYS_INCLUDE_DIRS?
= /usr
/include
88 # Enable shlibs checks if readelf is set, not available by default.
89 _OPSYS_CAN_CHECK_SHLIBS
= no
90 .if
!empty
(TOOLS_PATH.readelf
)
91 _OPSYS_CAN_CHECK_SHLIBS
= yes
94 # check for maximum command line length and set it in configure's environment,
95 # to avoid a test required by the libtool script that takes forever.
96 # FIXME: Adjust to work on this system and enable the lines below.
97 #_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax