Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / mk / platform / SunOS.mk
blobd16d22a66121be9697a03389b62534af33d886cb
1 # $NetBSD: SunOS.mk,v 1.49 2013/03/01 16:58:51 jperkin Exp $
3 # Variable definitions for the SunOS/Solaris operating system.
5 ECHO_N?= ${ECHO} -n
6 IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
7 PKGLOCALEDIR?= lib
8 PS?= /bin/ps
9 # XXX: default from defaults/mk.conf. Verify/correct for this platform
10 # and remove this comment.
11 SU?= /usr/bin/su
12 TYPE?= /usr/bin/type
14 CPP_PRECOMP_FLAGS?= # unset
15 DEF_UMASK?= 022
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
21 ROOT_GROUP?= root
22 ROOT_USER?= root
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)
30 X11_TYPE?= native
31 .else
32 X11_TYPE?= modular
33 .endif
34 .if ${X11_TYPE} == native
35 MOTIF_TYPE_DEFAULT?= dt # default 2.0 compatible libs type
36 .else
37 MOTIF_TYPE_DEFAULT?= motif
38 .endif
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
50 .else
51 _OPSYS_HAS_INET6= no # IPv6 is not standard
52 .endif
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
71 # incompatible.
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"
80 LIBABISUFFIX= /amd64
81 _OPSYS_SYSTEM_RPATH?= /lib/64:/usr/lib/64
82 .else
83 _OPSYS_SYSTEM_RPATH?= /lib:/usr/lib
84 .endif
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
92 .endif
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