summaryrefslogtreecommitdiff
path: root/lang/nodejs
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-06-23 08:20:20 +0000
committernia <nia@pkgsrc.org>2021-06-23 08:20:20 +0000
commit62d8af3e2e3ec3a9ff36a0850b2a5c18a627619e (patch)
tree510ecfc86371d9af775259221bf1e95fb370ac51 /lang/nodejs
parentab58f38dddb8eedb0fcfe93b0b08bea14f956e65 (diff)
downloadpkgsrc-62d8af3e2e3ec3a9ff36a0850b2a5c18a627619e.tar.gz
nodejs: Set correct destination CPU on powerpc
Diffstat (limited to 'lang/nodejs')
-rw-r--r--lang/nodejs/Makefile.common6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/nodejs/Makefile.common b/lang/nodejs/Makefile.common
index d1d1766e3cc..e01c55edb1c 100644
--- a/lang/nodejs/Makefile.common
+++ b/lang/nodejs/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.41 2020/12/16 07:43:13 adam Exp $
+# $NetBSD: Makefile.common,v 1.42 2021/06/23 08:20:20 nia Exp $
# used by lang/nodejs/Makefile
# used by lang/nodejs8/Makefile
# used by lang/nodejs10/Makefile
@@ -31,6 +31,10 @@ PTHREAD_AUTO_VARS= yes
CONFIGURE_ENV.NetBSD+= GYP_DEFINES="OS=netbsd"
MAKE_ENV.NetBSD+= GYP_DEFINES="OS=netbsd"
+.if ${MACHINE_ARCH} == "powerpc"
+CONFIGURE_ARGS+= --dest-cpu=ppc
+.endif
+
.if ${OPSYS} == "Linux" && !exists(/usr/bin/gold)
CONFIGURE_ENV+= GYP_DEFINES="linux_use_gold_flags=0"
.endif