[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #48274] adding -j option to MAKEFLAGS no longer works

From: Oliver Kiddle
Subject: [bug #48274] adding -j option to MAKEFLAGS no longer works
Date: Mon, 20 Jun 2016 10:16:19 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0


                 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



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

        sleep 3

        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:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]