diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-10-01 11:25:52 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-10-01 11:25:52 +0000 |
commit | 64304f5fea01238d605ecb82eb67600ee0ef4c4d (patch) | |
tree | 9b599cfa0540ed9aa13053e3ea6e7445fb28d5fd /devel/nspr/Makefile | |
parent | 2a8e19a98555ec7b58aef3bab7073bb2ec384075 (diff) | |
download | pkgsrc-64304f5fea01238d605ecb82eb67600ee0ef4c4d.tar.gz |
Fix broken librares on OS X/Darwin.
Build is o.k., but broken.
otool -L shows @executable_path string.
Diffstat (limited to 'devel/nspr/Makefile')
-rw-r--r-- | devel/nspr/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/nspr/Makefile b/devel/nspr/Makefile index f18d6778c61..4c56a419240 100644 --- a/devel/nspr/Makefile +++ b/devel/nspr/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.52 2012/08/28 13:29:15 ryoon Exp $ +# $NetBSD: Makefile,v 1.53 2012/10/01 11:25:52 ryoon Exp $ # DISTNAME= nspr-${NSPR_RELEASE} @@ -39,6 +39,14 @@ SUBST_MESSAGE.nspr-config= Fixing nspr-config run path SUBST_FILES.nspr-config= nsprpub/config/nspr-config.in SUBST_SED.nspr-config= -e 's|-L$$libdir|"${COMPILER_RPATH_FLAG}$$libdir -L$$libdir"|g' +.if ${OPSYS} == "Darwin" +SUBST_CLASSES+= exec_path +SUBST_STAGE.exec_path= pre-configure +SUBST_MESSAGE.exec_path= Fixing @executable_path +SUBST_FILES.exec_path= nsprpub/configure.in +SUBST_SED.exec_path= -e 's,@executable_path,${PREFIX}/lib/nspr,g' +.endif + .if ${OBJECT_FMT} == "ELF" SO_SUFFIX= so .elif ${OBJECT_FMT} == "Mach-O" |