summaryrefslogtreecommitdiff
path: root/pkgtools/pkg
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-09-07 23:30:45 +0000
committernia <nia@pkgsrc.org>2019-09-07 23:30:45 +0000
commit84386c62ca447245d1564d1afd30f83b9b97f667 (patch)
tree858260bfed0fee164068a7d66e47d10b9b7ab707 /pkgtools/pkg
parentbfbb491eca69fcea46007d8e8d834d98bd819106 (diff)
downloadpkgsrc-84386c62ca447245d1564d1afd30f83b9b97f667.tar.gz
pkg: needs pthreads.
fixes build on netbsd-9.
Diffstat (limited to 'pkgtools/pkg')
-rw-r--r--pkgtools/pkg/Makefile4
1 files changed, 3 insertions, 1 deletions
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"