summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-03-18 11:39:18 +0000
committerjperkin <jperkin@pkgsrc.org>2016-03-18 11:39:18 +0000
commitd083691ff221696029c60c46232a38fa065326ca (patch)
tree9d1a7e2ed18076703992dc309d6d862ac43734a7
parent387346d7a97a0e2d1b23e3920ce77169fe35fc5d (diff)
downloadpkgsrc-d083691ff221696029c60c46232a38fa065326ca.tar.gz
Ensure we don't try to use gold on Linux if it doesn't exist. Fixes
64-bit build on CentOS.
-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