Skip to content

Commit

Permalink
build: avoid passing private flags from pmake
Browse files Browse the repository at this point in the history
pmake introduces private flags (-J) when passing certain arguments
to it (such as -j). Filter these out before passing to gmake.

PR-URL: #1334
Reviewed-By: Fedor Indutny <fedor@indutny.com>
  • Loading branch information
jbergstroem committed Apr 3, 2015
1 parent a081c7c commit 6a134f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BSDmakefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6a134f7

Please sign in to comment.