| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: NetBSD.mk,v 1.77 2023/08/16 08:07:01 nia Exp $ | | 1 | # $NetBSD: NetBSD.mk,v 1.78 2023/10/05 16:31:51 rhialto Exp $ |
2 | # | | 2 | # |
3 | # Variable definitions for the NetBSD operating system. | | 3 | # Variable definitions for the NetBSD operating system. |
4 | | | 4 | |
5 | # Needed for 1.6.1 and earlier due to rpcgen bugs and paths | | 5 | # Needed for 1.6.1 and earlier due to rpcgen bugs and paths |
6 | .if defined(CPP) && ${CPP} == "cpp" | | 6 | .if defined(CPP) && ${CPP} == "cpp" |
7 | CPP= /usr/bin/cpp | | 7 | CPP= /usr/bin/cpp |
8 | .endif | | 8 | .endif |
9 | ECHO_N?= ${ECHO} -n | | 9 | ECHO_N?= ${ECHO} -n |
10 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake | | 10 | IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake |
11 | PKGLOCALEDIR?= share | | 11 | PKGLOCALEDIR?= share |
12 | PS?= /bin/ps | | 12 | PS?= /bin/ps |
13 | SU?= /usr/bin/su | | 13 | SU?= /usr/bin/su |
14 | TYPE?= type # Shell builtin | | 14 | TYPE?= type # Shell builtin |
| @@ -199,24 +199,27 @@ _OPSYS_SUPPORTS_SSP= yes | | | @@ -199,24 +199,27 @@ _OPSYS_SUPPORTS_SSP= yes |
199 | | | 199 | |
200 | # Register support for stack check on supported architectures (with GCC) | | 200 | # Register support for stack check on supported architectures (with GCC) |
201 | .if (${MACHINE_ARCH} == "i386") || \ | | 201 | .if (${MACHINE_ARCH} == "i386") || \ |
202 | (${MACHINE_ARCH} == "x86_64") | | 202 | (${MACHINE_ARCH} == "x86_64") |
203 | _OPSYS_SUPPORTS_STACK_CHECK= yes | | 203 | _OPSYS_SUPPORTS_STACK_CHECK= yes |
204 | .endif | | 204 | .endif |
205 | | | 205 | |
206 | .if !defined(PKG_DBDIR) && exists(/var/db/pkg) | | 206 | .if !defined(PKG_DBDIR) && exists(/var/db/pkg) |
207 | PKG_DBDIR_ERROR= Compatibility pkgdb location exists, but PKG_DBDIR not specified. \ | | 207 | PKG_DBDIR_ERROR= Compatibility pkgdb location exists, but PKG_DBDIR not specified. \ |
208 | This may cause unexpected issues. To avoid problems, add \ | | 208 | This may cause unexpected issues. To avoid problems, add \ |
209 | PKG_DBDIR=/var/db/pkg to /etc/mk.conf. | | 209 | PKG_DBDIR=/var/db/pkg to /etc/mk.conf. |
210 | .endif | | 210 | .endif |
211 | | | 211 | |
| | | 212 | .if exists(/usr/bin/ctfconvert) |
| | | 213 | _OPSYS_SUPPORTS_CTF= yes # Compact Type Format conversion. |
| | | 214 | .endif |
212 | _OPSYS_SUPPORTS_CWRAPPERS= yes | | 215 | _OPSYS_SUPPORTS_CWRAPPERS= yes |
213 | _OPSYS_SUPPORTS_MKTOOLS= yes | | 216 | _OPSYS_SUPPORTS_MKTOOLS= yes |
214 | | | 217 | |
215 | # use readelf in check/bsd.check-vars.mk | | 218 | # use readelf in check/bsd.check-vars.mk |
216 | _OPSYS_CAN_CHECK_RELRO= yes | | 219 | _OPSYS_CAN_CHECK_RELRO= yes |
217 | _OPSYS_CAN_CHECK_SHLIBS= yes | | 220 | _OPSYS_CAN_CHECK_SHLIBS= yes |
218 | _OPSYS_CAN_CHECK_SSP= no # only supports libssp at this time | | 221 | _OPSYS_CAN_CHECK_SSP= no # only supports libssp at this time |
219 | | | 222 | |
220 | # check for maximum command line length and set it in configure's environment, | | 223 | # check for maximum command line length and set it in configure's environment, |
221 | # to avoid a test required by the libtool script that takes forever. | | 224 | # to avoid a test required by the libtool script that takes forever. |
222 | _OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax | | 225 | _OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax |