summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/nspr/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/nspr/Makefile b/devel/nspr/Makefile
index 9844c25a9de..da0d839799b 100644
--- a/devel/nspr/Makefile
+++ b/devel/nspr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.83 2016/02/25 12:12:49 jperkin Exp $
+# $NetBSD: Makefile,v 1.84 2016/03/10 16:23:54 jperkin Exp $
DISTNAME= nspr-${NSPR_RELEASE:S/.0$//}
NSPR_RELEASE= 4.12.0
@@ -37,6 +37,11 @@ SUBST_MESSAGE.nspr-config= Fixing nspr-config run path
SUBST_FILES.nspr-config= nspr/config/nspr-config.in
SUBST_SED.nspr-config= -e 's|-L$$libdir|"${COMPILER_RPATH_FLAG}$$libdir -L$$libdir"|g'
+SUBST_CLASSES+= nspr-rpath
+SUBST_STAGE.nspr-rpath= pre-configure
+SUBST_FILES.nspr-rpath= nspr/lib/libc/src/Makefile.in nspr/lib/ds/Makefile.in
+SUBST_SED.nspr-rpath= -e 's|$$$$ORIGIN|${PREFIX}/lib/nspr|g'
+
.if ${OPSYS} == "OpenBSD"
CHECK_SHLIBS_SUPPORTED= no
.endif