diff options
author | Johan Bergström <bugs@bergstroem.nu> | 2015-04-03 14:04:14 +1100 |
---|---|---|
committer | Johan Bergström <bugs@bergstroem.nu> | 2015-04-03 19:38:33 +1100 |
commit | 6a134f7d70709f9a0d9b8d005e97d7eb7e656f14 (patch) | |
tree | 23ee8254ac756bb965367db871349920d6a4c57d /BSDmakefile | |
parent | a081c7c5222de844ed0a61d470b8334676249d66 (diff) | |
download | android-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-- | BSDmakefile | 5 |
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 |