summaryrefslogtreecommitdiff
path: root/parallel
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-11-17 10:56:39 +0000
committeragc <agc@pkgsrc.org>1998-11-17 10:56:39 +0000
commit1a43f8d5115e41411af81c0c3ee9649d51508ca2 (patch)
tree0a1a6d599376f5d7c2fb713e721e64b7690b443e /parallel
parent61f9e77abc7599ce73d2431e8d5a8ed415098682 (diff)
downloadpkgsrc-1a43f8d5115e41411af81c0c3ee9649d51508ca2.tar.gz
On arm32 with UVM, <machine/pmap.h> includes a C++ keyword as a fieldname
in a truct. Workaround this - allows this package to build on arm32.
Diffstat (limited to 'parallel')
-rw-r--r--parallel/glunix/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/parallel/glunix/Makefile b/parallel/glunix/Makefile
index 31557bcaf1a..31d171d2e76 100644
--- a/parallel/glunix/Makefile
+++ b/parallel/glunix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 1998/11/16 21:02:20 agc Exp $
+# $NetBSD: Makefile,v 1.3 1998/11/17 10:56:39 agc Exp $
DISTNAME= glunix-release-1-0a
PKGNAME= glunix-1.0a
@@ -44,6 +44,14 @@ pre-configure:
${ECHO} "$$addgroup" >> /etc/group; \
fi
+# On arm32, with UVM, pmap.h contains a C++ keyword. Workaround this.
+pre-build:
+ @if [ ${MACHINE} = "arm32" -a ! -z "${UVM}" ]; then \
+ ${MKDIR} -p ${WRKSRC}/glunix/include/machine; \
+ ${SED} -e 's|virtual|virt|' /usr/include/machine/pmap.h \
+ > ${WRKSRC}/glunix/include/machine/pmap.h; \
+ fi
+
pre-install:
${SED} -e 's|\$${NOW_ROOT}|${NOW_ROOT}|g' ${PKGDIR}/MESSAGE > ${MESSAGE_FILE}
@${ECHO} "updating /etc/shells";