summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjperkin <jperkin>2016-03-18 11:39:18 +0000
committerjperkin <jperkin>2016-03-18 11:39:18 +0000
commit62dad93b63c77d201bfea15cc19f091e33f37a19 (patch)
tree9d1a7e2ed18076703992dc309d6d862ac43734a7 /lang
parent105f07107106fc129e1b5ba7c6b935a0b2c95316 (diff)
downloadpkgsrc-62dad93b63c77d201bfea15cc19f091e33f37a19.tar.gz
Ensure we don't try to use gold on Linux if it doesn't exist. Fixes
64-bit build on CentOS.
Diffstat (limited to 'lang')
-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 844c6d99403..5ad7f9d5d96 100644
--- a/lang/nodejs/Makefile.common
+++ b/lang/nodejs/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.5 2016/03/12 12:34:44 tnn Exp $
+# $NetBSD: Makefile.common,v 1.6 2016/03/18 11:39:18 jperkin Exp $
# used by lang/nodejs/Makefile
# used by lang/nodejs4/Makefile
@@ -30,6 +30,10 @@ PTHREAD_AUTO_VARS= yes
CONFIGURE_ENV.NetBSD+= GYP_DEFINES="OS=netbsd"
MAKE_ENV.NetBSD+= GYP_DEFINES="OS=netbsd"
+.if ${OPSYS} == "Linux" && !exists(/usr/bin/gold)
+CONFIGURE_ENV+= GYP_DEFINES="linux_use_gold_flags=0"
+.endif
+
REPLACE_PYTHON+= configure
REPLACE_PYTHON+= tools/genv8constants.py
REPLACE_PYTHON+= tools/gyp/pylib/gyp/flock_tool.py