From 84386c62ca447245d1564d1afd30f83b9b97f667 Mon Sep 17 00:00:00 2001 From: nia Date: Sat, 7 Sep 2019 23:30:45 +0000 Subject: pkg: needs pthreads. fixes build on netbsd-9. --- pkgtools/pkg/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkgtools') diff --git a/pkgtools/pkg/Makefile b/pkgtools/pkg/Makefile index 8bca6c92fe9..7c8274f2459 100644 --- a/pkgtools/pkg/Makefile +++ b/pkgtools/pkg/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2018/07/04 13:40:32 jperkin Exp $ +# $NetBSD: Makefile,v 1.24 2019/09/07 23:30:45 nia Exp $ DISTNAME= pkg-1.9.99.4 PKGREVISION= 1 @@ -16,6 +16,7 @@ GNU_CONFIGURE= yes USE_CWRAPPERS= no USE_LANGUAGES= c +LDFLAGS+= -pthread CPPFLAGS+= -D_LOCALBASE="\"${PREFIX}\"" CPPFLAGS+= -DPORTSDIR="\"${PKG.portsdir}\"" CPPFLAGS+= -DDEFAULT_VULNXML_URL="\"http://muscles.dragonflybsd.org/pkgsrc-vuxml/vuln.xml.bz2\"" @@ -149,4 +150,5 @@ BUILDLINK_TRANSFORM+= rm:-Wl,--enable-new-dtags .if ${OPSYS} != "FreeBSD" && ${OPSYS} != "DragonFly" && ${OPSYS} != "NetBSD" .include "../../archivers/libarchive/buildlink3.mk" .endif +.include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3