| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: OpenBSD.mk,v 1.33 2012/03/19 12:34:18 joerg Exp $ | | 1 | # $NetBSD: OpenBSD.mk,v 1.34 2012/05/04 11:46:02 obache Exp $ |
2 | # | | 2 | # |
3 | # Variable definitions for the OpenBSD operating system. | | 3 | # Variable definitions for the OpenBSD 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?= share | | 7 | PKGLOCALEDIR?= share |
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?= type # Shell builtin | | 12 | TYPE?= type # Shell builtin |
13 | | | 13 | |
14 | .if exists(/usr/sbin/user) | | 14 | .if exists(/usr/sbin/user) |
| @@ -25,26 +25,28 @@ EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dyn | | | @@ -25,26 +25,28 @@ EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dyn |
25 | .endif | | 25 | .endif |
26 | MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type | | 26 | MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type |
27 | NOLOGIN?= /sbin/nologin | | 27 | NOLOGIN?= /sbin/nologin |
28 | PKG_TOOLS_BIN?= ${LOCALBASE}/sbin | | 28 | PKG_TOOLS_BIN?= ${LOCALBASE}/sbin |
29 | ROOT_CMD?= ${SU} - root -c | | 29 | ROOT_CMD?= ${SU} - root -c |
30 | ROOT_USER?= root | | 30 | ROOT_USER?= root |
31 | ROOT_GROUP?= wheel | | 31 | ROOT_GROUP?= wheel |
32 | ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d` | | 32 | ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d` |
33 | ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s` | | 33 | ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s` |
34 | ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m` | | 34 | ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m` |
35 | | | 35 | |
36 | X11_TYPE?= native | | 36 | X11_TYPE?= native |
37 | | | 37 | |
| | | 38 | _OPSYS_SYSTEM_RPATH?= /usr/lib |
| | | 39 | |
38 | .if exists(/usr/include/netinet6) | | 40 | .if exists(/usr/include/netinet6) |
39 | _OPSYS_HAS_INET6= yes # IPv6 is standard | | 41 | _OPSYS_HAS_INET6= yes # IPv6 is standard |
40 | .else | | 42 | .else |
41 | _OPSYS_HAS_INET6= no # IPv6 is not standard | | 43 | _OPSYS_HAS_INET6= no # IPv6 is not standard |
42 | .endif | | 44 | .endif |
43 | _OPSYS_HAS_JAVA= no # Java is not standard | | 45 | _OPSYS_HAS_JAVA= no # Java is not standard |
44 | _OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages | | 46 | _OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages |
45 | _OPSYS_HAS_OSSAUDIO= yes # libossaudio is available | | 47 | _OPSYS_HAS_OSSAUDIO= yes # libossaudio is available |
46 | _OPSYS_PERL_REQD= # no base version of perl required | | 48 | _OPSYS_PERL_REQD= # no base version of perl required |
47 | _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads | | 49 | _OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads |
48 | _OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type | | 50 | _OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type |
49 | _PATCH_CAN_BACKUP= yes # native patch(1) can make backups | | 51 | _PATCH_CAN_BACKUP= yes # native patch(1) can make backups |
50 | .if ${OS_VERSION} >= 3.4 | | 52 | .if ${OS_VERSION} >= 3.4 |
| @@ -78,18 +80,18 @@ SERIAL_DEVICES?= /dev/tty00 \ | | | @@ -78,18 +80,18 @@ SERIAL_DEVICES?= /dev/tty00 \ |
78 | DEFAULT_SERIAL_DEVICE?= /dev/ttya | | 80 | DEFAULT_SERIAL_DEVICE?= /dev/ttya |
79 | SERIAL_DEVICES?= /dev/ttya \ | | 81 | SERIAL_DEVICES?= /dev/ttya \ |
80 | /dev/ttyb | | 82 | /dev/ttyb |
81 | .else | | 83 | .else |
82 | DEFAULT_SERIAL_DEVICE?= /dev/null | | 84 | DEFAULT_SERIAL_DEVICE?= /dev/null |
83 | SERIAL_DEVICES?= /dev/null | | 85 | SERIAL_DEVICES?= /dev/null |
84 | .endif | | 86 | .endif |
85 | | | 87 | |
86 | # check for kqueue(2) support, added in OpenBSD-2.9 | | 88 | # check for kqueue(2) support, added in OpenBSD-2.9 |
87 | .if exists(/usr/include/sys/event.h) | | 89 | .if exists(/usr/include/sys/event.h) |
88 | PKG_HAVE_KQUEUE= # defined | | 90 | PKG_HAVE_KQUEUE= # defined |
89 | .endif | | 91 | .endif |
90 | | | 92 | |
91 | _OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk | | 93 | _OPSYS_CAN_CHECK_SHLIBS= yes # use readelf in check/bsd.check-vars.mk |
92 | | | 94 | |
93 | # check for maximum command line length and set it in configure's environment, | | 95 | # check for maximum command line length and set it in configure's environment, |
94 | # to avoid a test required by the libtool script that takes forever. | | 96 | # to avoid a test required by the libtool script that takes forever. |
95 | _OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax | | 97 | _OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax |