bug-make
[Top][All Lists]
Advanced

[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

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/




reply via email to

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