Module Name: src
Committed By: christos
Date: Mon Apr 1 22:23:15 UTC 2024
Modified Files:
src/share/mk: bsd.own.mk
Log Message:
Use the TOOL_GZIP we built as part of tools if available.
To generate a diff of this commit:
cvs rdiff -u -r1.1363 -r1.1364 src/share/mk/bsd.own.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1363 src/share/mk/bsd.own.mk:1.1364
--- src/share/mk/bsd.own.mk:1.1363 Sat Jan 20 03:09:13 2024
+++ src/share/mk/bsd.own.mk Mon Apr 1 18:23:14 2024
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.1363 2024/01/20 08:09:13 skrll Exp $
+# $NetBSD: bsd.own.mk,v 1.1364 2024/04/01 22:23:14 christos Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@@ -1612,7 +1612,11 @@ USE_XZ_SETS?= no
TOOL_GZIP= ${TOOL_PIGZ}
GZIP_N_FLAG?= -nT
.else
+.if ${USETOOLS} == "yes"
+TOOL_GZIP= ${TOOLDIR}/bin/${_TOOL_PREFIX}gzip
+.else
TOOL_GZIP= gzip
+.endif
GZIP_N_FLAG?= -n
.endif
TOOL_GZIP_N= ${TOOL_GZIP} ${GZIP_N_FLAG}