summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.crunchgen.mk
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2013-06-07 21:40:02 +0000
committeremaste <emaste@FreeBSD.org>2013-06-07 21:40:02 +0000
commit390d8402e005d267efedefcb438af08e196b3d95 (patch)
tree1f627bceaf932e22013baa1c3a548108de20a7f1 /share/mk/bsd.crunchgen.mk
parent6445326c71cfbc6642679290f0fed222d43f477f (diff)
downloadFreeBSD-src-390d8402e005d267efedefcb438af08e196b3d95.zip
FreeBSD-src-390d8402e005d267efedefcb438af08e196b3d95.tar.gz
Add a new knob WITH_DEBUG_FILES to control the building of standalone
debug files for userland programs and libraries. The "-g" debug flag is automatically applied when WITH_DEBUG_FILES is set. The debug files are now named ${prog}.debug and ${shlib}.debug for consistency with other systems and documentation. In addition they are installed under /usr/lib/debug, to simplify the process of installing them if needed after a crash. Users of bsd.{prog,lib}.mk outside of the base system place the standalone debug files in a .debug subdirectory. GDB automatically searches both of these directories for standalone debug files. Thanks to everyone who contributed changes, review, and testing during development.
Diffstat (limited to 'share/mk/bsd.crunchgen.mk')
-rw-r--r--share/mk/bsd.crunchgen.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.crunchgen.mk b/share/mk/bsd.crunchgen.mk
index 95f1aa3..d8f07b1 100644
--- a/share/mk/bsd.crunchgen.mk
+++ b/share/mk/bsd.crunchgen.mk
@@ -47,6 +47,9 @@ CRUNCH_GENERATE_LINKS?= yes
CLEANFILES+= $(CONF) *.o *.lo *.c *.mk *.cache *.a *.h
+# Don't try to extract debug info from ${PROG}.
+NO_DEBUG_FILES=
+
# Program names and their aliases contribute hardlinks to 'rescue' executable,
# except for those that get suppressed.
.for D in $(CRUNCH_SRCDIRS)
OpenPOWER on IntegriCloud