From fb6d0a4e0decc9002f59192e167c601193a7a603 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 28 Jul 2019 12:44:36 +0000 Subject: [PATCH] Explicitly link against libpthread and liblzma to make static linking happy. Newer libarchive supports LZMA compression in zip files. --- usr.bin/unzip/Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/usr.bin/unzip/Makefile b/usr.bin/unzip/Makefile index 02d45790df98..fa0416d48cdb 100644 --- a/usr.bin/unzip/Makefile +++ b/usr.bin/unzip/Makefile @@ -1,13 +1,10 @@ -# $NetBSD: Makefile,v 1.6 2017/05/21 15:28:43 riastradh Exp $ +# $NetBSD: Makefile,v 1.7 2019/07/28 12:44:36 joerg Exp $ .include PROG= unzip -DPADD+= ${LIBARCHIVE} ${LIBZ} ${LIBBZ2} -LDADD+= -larchive -lz -lbz2 - -LDADD+= -lcrypto -DPADD+= ${LIBCRYPTO} +DPADD+= ${LIBARCHIVE} ${LIBZ} ${LIBBZ2} ${LIBLZMA} ${LIBCRYPTO} ${LIBPTHREAD} +LDADD+= -larchive -lz -lbz2 -llzma -lcrypto -lpthread COPTS.unzip.c += -Wno-format-y2k