Thu Oct 5 16:31:52 2023 UTC ()
NetBSD supports CTF if /usr/bin/ctfconvert exists.


(rhialto)
diff -r1.77 -r1.78 pkgsrc/mk/platform/NetBSD.mk

cvs diff -r1.77 -r1.78 pkgsrc/mk/platform/NetBSD.mk (expand / switch to unified diff)

--- pkgsrc/mk/platform/NetBSD.mk 2023/08/16 08:07:01 1.77
+++ pkgsrc/mk/platform/NetBSD.mk 2023/10/05 16:31:51 1.78
@@ -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"
7CPP= /usr/bin/cpp 7CPP= /usr/bin/cpp
8.endif 8.endif
9ECHO_N?= ${ECHO} -n 9ECHO_N?= ${ECHO} -n
10IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake 10IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
11PKGLOCALEDIR?= share 11PKGLOCALEDIR?= share
12PS?= /bin/ps 12PS?= /bin/ps
13SU?= /usr/bin/su 13SU?= /usr/bin/su
14TYPE?= type # Shell builtin 14TYPE?= 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)
207PKG_DBDIR_ERROR= Compatibility pkgdb location exists, but PKG_DBDIR not specified. \ 207PKG_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