URL: <http://savannah.gnu.org/bugs/?48274>
Summary: adding -j option to MAKEFLAGS no longer works Project: make Submitted by: opk Submitted on: Mon 20 Jun 2016 12:16:17 PM CEST Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: 4.2 Operating System: POSIX-Based Fixed Release: None Triage Status: None _______________________________________________________ Details: As of version 4.2, it no longer works to add a -j option to MAKEFLAGS from within the Makefile. This was used in our common include files so that parallel builds would be enabled by default and so that we could automate selecting an appropriate default number of jobs on different systems. JOBS ?= $(shell /usr/sbin/psrinfo | head -8 | wc -l) MAKEFLAGS += -rRL -j $(JOBS) $(if $(filter output-sync,$(.FEATURES)),-O )$(if $(findstring test,$(MAKECMDGOALS)),-k) all: three two three: sleep 3 two: sleep 2 Ideally it would be easy to both force a default number of jobs and honour and explicit -j option passed on the command-line to gmake. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?48274> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make