From ee93b8d123669aeebaa707908dea4a69d654cb98 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 15 Aug 2024 09:29:12 +0000 Subject: [PATCH] Document DWZ and fix a few mandoc lints from espie --- share/man/man5/bsd.port.mk.5 | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/share/man/man5/bsd.port.mk.5 b/share/man/man5/bsd.port.mk.5 index 6114e2f7050..4c5b43e5934 100644 --- a/share/man/man5/bsd.port.mk.5 +++ b/share/man/man5/bsd.port.mk.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: bsd.port.mk.5,v 1.644 2023/11/11 10:46:37 espie Exp $ +.\" $OpenBSD: bsd.port.mk.5,v 1.645 2024/08/15 09:29:12 tb Exp $ .\" .\" Copyright (c) 2000-2008 Marc Espie .\" @@ -24,7 +24,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: November 11 2023 $ +.Dd $Mdocdate: August 15 2024 $ .Dt BSD.PORT.MK 5 .Os .Sh NAME @@ -1843,6 +1843,20 @@ package and to perform introspection and obtain .Nm Ns 's default values for variables without needing to access any specific port. +.It Ev DWZ +Command line invocation of +.Xr dwz 1 +to shrink debug information while building debug packages. +Defaults to +.Sq dwz -L 100000000 +Can be set to +.Sq \&: +to not run +.Xr dwz 1 +at all. +See +.Sx THE DEBUG_PACKAGES INFRASTRUCTURE +for details. .It Ev ECHO_MSG User settings. Used to display @@ -3671,10 +3685,9 @@ bfd's .Xr ld 1 .Pc . .Sq ports -force the use of +forces the use of .Xr ld.lld 1 from lang/clang module. -.Pc Defaults to the appropriate value for the current architecture .Po see @@ -3961,7 +3974,7 @@ target , .Xr build-debug-info 1 will be invoked to deduce debug packing-lists from the normal packing-lists, and some extra makefile rules will be invoked to set aside the debug -information. +information, and shrink it by processing it through ${DWZ}. .Pp Then each normal package will have a "shadow" debug-* package built alongside it, with the exact same package signature, except it will also be tied closely -- 2.20.1