summaryrefslogtreecommitdiff
path: root/BSDmakefile
diff options
context:
space:
mode:
authorJohan Bergström <bugs@bergstroem.nu>2015-04-03 14:04:14 +1100
committerJohan Bergström <bugs@bergstroem.nu>2015-04-03 19:38:33 +1100
commit6a134f7d70709f9a0d9b8d005e97d7eb7e656f14 (patch)
tree23ee8254ac756bb965367db871349920d6a4c57d /BSDmakefile
parenta081c7c5222de844ed0a61d470b8334676249d66 (diff)
downloadandroid-node-v8-6a134f7d70709f9a0d9b8d005e97d7eb7e656f14.tar.gz
android-node-v8-6a134f7d70709f9a0d9b8d005e97d7eb7e656f14.tar.bz2
android-node-v8-6a134f7d70709f9a0d9b8d005e97d7eb7e656f14.zip
build: avoid passing private flags from pmake
pmake introduces private flags (-J) when passing certain arguments to it (such as -j). Filter these out before passing to gmake. PR-URL: https://github.com/iojs/io.js/pull/1334 Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'BSDmakefile')
-rw-r--r--BSDmakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/BSDmakefile b/BSDmakefile
index b7000b0796..fa0b4a9b87 100644
--- a/BSDmakefile
+++ b/BSDmakefile
@@ -1,8 +1,11 @@
+# pmake might add -J (private)
+FLAGS=${.MAKEFLAGS:C/\-J ([0-9]+,?)+//W}
+
all: .DEFAULT
.DEFAULT:
@which gmake > /dev/null 2>&1 ||\
(echo "GMake is required for io.js to build.\
Install and try again" && exit 1)
- @gmake ${.MAKEFLAGS} ${.TARGETS}
+ @gmake ${.FLAGS} ${.TARGETS}
.PHONY: test