-.\" $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
.\"
.\" (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
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
.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
.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