1 # $NetBSD: BSDOS.mk,v 1.32 2012/11/19 11:34:15 ryoon Exp $
3 # Variable definitions for the BSD/OS operating system.
6 # BSD/OS doesn't have c++ command
11 IMAKE_MAKE?
= ${MAKE} # program which gets invoked by imake
14 # XXX: default from defaults/mk.conf. Verify/correct for this platform
15 # and remove this comment.
17 # sh doesn't have built-in type
20 CPP_PRECOMP_FLAGS?
= # unset
22 .if
${OBJECT_FMT} == "ELF"
23 EXPORT_SYMBOLS_LDFLAGS?
=-Wl
,-E
# add symbols to the dynamic symbol table
25 EXPORT_SYMBOLS_LDFLAGS?
=-Wl
,--export-dynamic
27 MOTIF_TYPE_DEFAULT?
= motif
# default 2.0 compatible libs type
28 NOLOGIN?
= /sbin
/nologin
29 PKG_TOOLS_BIN?
= ${LOCALBASE}/sbin
30 ROOT_CMD?
= ${SU} - root
-c
33 ULIMIT_CMD_datasize?
= ulimit
-d
`ulimit -H -d`
34 ULIMIT_CMD_stacksize?
= ulimit
-s
`ulimit -H -s`
35 ULIMIT_CMD_memorysize?
= ulimit
-m
`ulimit -H -m`
37 _OPSYS_SYSTEM_RPATH?
= /usr
/lib
38 _OPSYS_LIB_DIRS?
= /usr
/lib
39 _OPSYS_INCLUDE_DIRS?
= /usr
/include
41 .if exists
(/usr
/include/netinet6
)
42 _OPSYS_HAS_INET6
= yes
# IPv6 is standard
44 _OPSYS_HAS_INET6
= no
# IPv6 is not standard
46 # XXX need to check this for Java
47 _OPSYS_HAS_JAVA
= no
# Java is not standard
48 _OPSYS_HAS_MANZ
= yes
# MANZ controls gzipping of man pages
49 # XXX need to check this for libossaudio
50 _OPSYS_HAS_OSSAUDIO
= yes
# libossaudio is available
51 _OPSYS_PERL_REQD
= # no base version of perl required
52 _OPSYS_PTHREAD_AUTO
= no
# -lpthread needed for pthreads
53 _OPSYS_SHLIB_TYPE
= ELF
/a.out
# shared lib type
54 _PATCH_CAN_BACKUP
= yes
# native patch(1) can make backups
55 _PATCH_BACKUP_ARG?
= -V simple
-b
-z
# switch to patch(1) for backup suffix
56 _USE_RPATH
= yes
# add rpath to LDFLAGS
58 # flags passed to the linker to extract all symbols from static archives.
60 _OPSYS_WHOLE_ARCHIVE_FLAG
= -Wl
,--whole-archive
61 _OPSYS_NO_WHOLE_ARCHIVE_FLAG
= -Wl
,--no-whole-archive
63 _STRIPFLAG_CC?
= ${_INSTALL_UNSTRIPPED
:D
:U-s
} # cc(1) option to strip
64 _STRIPFLAG_INSTALL?
= ${_INSTALL_UNSTRIPPED
:D
:U-s
} # install(1) option to strip
66 DEFAULT_SERIAL_DEVICE?
= /dev
/null
67 SERIAL_DEVICES?
= /dev
/null
69 _OPSYS_CAN_CHECK_SHLIBS
= no
# can't use readelf in check/bsd.check-vars.mk
71 PKG_CREATE_USERGROUP
= NO
# until it works
73 # check for maximum command line length and set it in configure's environment,
74 # to avoid a test required by the libtool script that takes forever.
75 # FIXME: Adjust to work on this system and enable the lines below.
76 #_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax