Skip to content

Commit 6a134f7

Browse files
committed
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: #1334 Reviewed-By: Fedor Indutny <[email protected]>
1 parent a081c7c commit 6a134f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

BSDmakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
# pmake might add -J (private)
2+
FLAGS=${.MAKEFLAGS:C/\-J ([0-9]+,?)+//W}
3+
14
all: .DEFAULT
25
.DEFAULT:
36
@which gmake > /dev/null 2>&1 ||\
47
(echo "GMake is required for io.js to build.\
58
Install and try again" && exit 1)
6-
@gmake ${.MAKEFLAGS} ${.TARGETS}
9+
@gmake ${.FLAGS} ${.TARGETS}
710

811
.PHONY: test

0 commit comments

Comments
 (0)