Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/x_gzip Manifest that we need liblzma only when...



details:   https://anonhg.NetBSD.org/src/rev/ae5f75d23c1e
branches:  trunk
changeset: 934002:ae5f75d23c1e
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Jun 03 07:06:18 2020 +0000

description:
Manifest that we need liblzma only when USE_XZ_SETS is enabled.

diffstat:

 distrib/utils/x_gzip/Makefile |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 35200f02cc35 -r ae5f75d23c1e distrib/utils/x_gzip/Makefile
--- a/distrib/utils/x_gzip/Makefile     Wed Jun 03 06:36:44 2020 +0000
+++ b/distrib/utils/x_gzip/Makefile     Wed Jun 03 07:06:18 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.10 2018/10/26 22:28:59 christos Exp $
+#      $NetBSD: Makefile,v 1.11 2020/06/03 07:06:18 rin Exp $
 # Build a tiny limited gzip (i.e. for tiny boot media)
 
 SRCDIR=         ${.CURDIR}/../../../usr.bin/gzip
@@ -15,8 +15,12 @@
 
 # for crunched binaries this does not take effect, also check the
 # LIBS entry in the lists file
-DPADD=         ${LIBZ} ${LIBLZMA}
-LDADD=         -lz -llzma
+DPADD=         ${LIBZ}
+LDADD=         -lz
+.if ${USE_XZ_SETS:Uno} != "no"
+DPADD+=                ${LIBLZMA}
+LDADD+=                -llzma
+.endif
 
 .include <bsd.prog.mk>
 



Home | Main Index | Thread Index | Old Index