summaryrefslogtreecommitdiff
path: root/lang/ghc7
diff options
context:
space:
mode:
authorgutteridge <gutteridge@pkgsrc.org>2019-11-01 06:10:23 +0000
committergutteridge <gutteridge@pkgsrc.org>2019-11-01 06:10:23 +0000
commit16cf6b6c57ab53005ca712698b41c327c5133583 (patch)
treebe58e1bfe08d3db2f070dbe5cfd69d4ff1f9aa64 /lang/ghc7
parent91678c9b574d5e9fb35b19c33c8648608361d096 (diff)
downloadpkgsrc-16cf6b6c57ab53005ca712698b41c327c5133583.tar.gz
ghc7: refine NetBSD 9.x build fix for sandboxed pbulk
Diffstat (limited to 'lang/ghc7')
-rw-r--r--lang/ghc7/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/ghc7/Makefile b/lang/ghc7/Makefile
index 1de2e356fe9..937b05365d0 100644
--- a/lang/ghc7/Makefile
+++ b/lang/ghc7/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2019/10/29 05:12:47 gutteridge Exp $
+# $NetBSD: Makefile,v 1.36 2019/11/01 06:10:23 gutteridge Exp $
# -----------------------------------------------------------------------------
# Package metadata
#
@@ -193,6 +193,10 @@ BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
# compat80.
.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*)
BUILD_DEPENDS+= compat80-[0-9]*:../../emulators/compat80
+# In a sandboxed build environment, we have to reach over to the
+# installed libraries themselves, since the symlinks compat80 adds
+# to the /usr tree can't be applied.
+MAKE_ENV+= LD_LIBRARY_PATH=${LOCALBASE}/emul/netbsd/usr/lib
.endif
.include "../../converters/libiconv/buildlink3.mk"