summaryrefslogtreecommitdiff
path: root/pkgtools/pkg
diff options
context:
space:
mode:
authormarino <marino>2016-11-18 14:10:18 +0000
committermarino <marino>2016-11-18 14:10:18 +0000
commit34a542aea6cac8e219b55358740924ad94b51d5b (patch)
treef57cc2ae258c059400da180c2661e6621d2cccaf /pkgtools/pkg
parent92fe34322ea65d7e3cd7da4a1e1dd696c072b23b (diff)
downloadpkgsrc-34a542aea6cac8e219b55358740924ad94b51d5b.tar.gz
pkgtools/pkg: Fix build on recent NetBSD 7.99
After the binutils import, the RPATH is not getting set on -current versions of NetBSD. This BUILDLINK_TRANSFORM from wiz should resolve that issue.
Diffstat (limited to 'pkgtools/pkg')
-rw-r--r--pkgtools/pkg/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgtools/pkg/Makefile b/pkgtools/pkg/Makefile
index 976da20fc5c..b72f0182876 100644
--- a/pkgtools/pkg/Makefile
+++ b/pkgtools/pkg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2016/11/15 17:48:56 marino Exp $
+# $NetBSD: Makefile,v 1.17 2016/11/18 14:10:18 marino Exp $
DISTNAME= pkg-1.8.7
PKGREVISION= 8
@@ -148,6 +148,10 @@ PKGNG_DBDIR?= ${PKG_DBDIR}
PKGNG_DBDIR?= ${PREFIX}/pkgng-db
.endif
+.if ${OPSYS} == "NetBSD"
+BUILDLINK_TRANSFORM+= rm:-Wl,--enable-new-dtags
+.endif
+
.if ${OPSYS} != "FreeBSD" && ${OPSYS} != "DragonFly" && ${OPSYS} != "NetBSD"
.include "../../archivers/libarchive/buildlink3.mk"
.endif