summaryrefslogtreecommitdiff
path: root/mk/tools
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-11-12 14:22:58 +0000
committerjperkin <jperkin@pkgsrc.org>2018-11-12 14:22:58 +0000
commit6fc8ee4fa695940657da550101ed79da923fb0fe (patch)
tree750afd7418929def64b8dc2763263f653416e991 /mk/tools
parent9b5a438016d5026cab40691562b916c7ddc144b0 (diff)
downloadpkgsrc-6fc8ee4fa695940657da550101ed79da923fb0fe.tar.gz
mk: Add CTF infrastructure support.
Platform support is determined by _OPSYS_SUPPORTS_CTF from mk/platform, the user enables support by setting PKGSRC_USE_CTF=yes, and packages can explicitly disable support with CTF_SUPPORTED=no or skip certain files with CTF_FILES_SKIP. The path to ctfconvert is configured via TOOLS_PLATFORM.ctfconvert. If all of the requisite variables are enabled, a compiler-specific debug flag is passed via the wrappers to ensure we have DWARF information to convert, _INSTALL_UNSTRIPPED is explicitly defined to avoid binaries being stripped prior to conversion, and the conversion is performed during the install stage. It is recommended that users who enable the feature also set STRIP_DEBUG=yes to reduce the final binary size once the conversion has been performed. This has been used for the past year in Joyent SmartOS builds. FreeBSD is marked as supported but is untested.
Diffstat (limited to 'mk/tools')
-rw-r--r--mk/tools/tools.FreeBSD.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/tools/tools.FreeBSD.mk b/mk/tools/tools.FreeBSD.mk
index 222b2aff04d..53d31ff0771 100644
--- a/mk/tools/tools.FreeBSD.mk
+++ b/mk/tools/tools.FreeBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: tools.FreeBSD.mk,v 1.46 2018/11/12 13:34:39 jperkin Exp $
+# $NetBSD: tools.FreeBSD.mk,v 1.47 2018/11/12 14:22:58 jperkin Exp $
#
# System-supplied tools for the FreeBSD operating system.
@@ -18,6 +18,7 @@ TOOLS_PLATFORM.chown?= /usr/sbin/chown
TOOLS_PLATFORM.cmp?= /usr/bin/cmp
TOOLS_PLATFORM.cp?= /bin/cp
TOOLS_PLATFORM.csh?= /bin/csh
+TOOLS_PLATFORM.ctfconvert?= /usr/bin/ctfconvert
TOOLS_PLATFORM.cut?= /usr/bin/cut
TOOLS_PLATFORM.date?= /bin/date
TOOLS_PLATFORM.diff?= /usr/bin/diff