From 6a134f7d70709f9a0d9b8d005e97d7eb7e656f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstr=C3=B6m?= Date: Fri, 3 Apr 2015 14:04:14 +1100 Subject: [PATCH] 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 --- BSDmakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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