bugmake - Bugs: bug #35336, Altering MAKEFLAGS doesn't...


bug #35336: Altering MAKEFLAGS doesn't correctly alter the behavior of make

Submitted by:  Brian Vandenberg <phantal>
Submitted on:  Fri 20 Jan 2012 08:01:03 AM UTC  
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  Paul D. Smith <psmith> Open/Closed:  Closed
Component Version:  3.82 Operating System:  Any
Fixed Release:  4.0 Triage Status:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 22 May 2013 06:52:57 AM UTC, comment #1:

Most of this is a duplicate of Savannah bug #20501. The difference in -p output has also been fixed.

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Fri 20 Jan 2012 08:01:03 AM UTC, original submission:

To verify this, I ran 3 separate tests:

  • Test 1:
    • Flags used: -p, entered from the command-line
  • Test 2:
    • Flags used: -Rrnp, entered from the command-line
  • Test 3:
    • Flags used: -Rrnp, added to MAKEFLAGS in a makefile

In each case, I ran:

gmake > testN.txt

... then compared them using meld. Other than adding to MAKEFLAGS in test 3, the makefile was empty. The results were thus:

  • Test 1: This had the most rules/variables (as you might expect)
  • Test 2: There were no default-rules, and the variables emitted appear to be variables that are part of make's functionality
  • Test 3: There were fewer default rules & variables than test #1, but the number of rules and variables that were emitted far exceeded the number that weren't emitted.

Along these lines, but perhaps only cosmetic: You get different output if you pass -p on the command-line -vs- adding it to MAKEFLAGS.

I've attached 4 logs demonstrating these issues.

Brian Vandenberg <phantal>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #24849:  minusp_cmdline.txt added by phantal (24KiB - text/plain)
file #24850:  Rrnp_cmdline.txt added by phantal (6KiB - text/plain)
file #24851:  minusp_invar.txt added by phantal (24KiB - text/plain)
file #24852:  Rrnp_invar.txt added by phantal (23KiB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by phantal (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-22 psmith StatusNone => Fixed
        Assigned toNone => psmith
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.0
    2012-01-20 phantal Attached File- => Added minusp_cmdline.txt, #24849
        Attached File- => Added Rrnp_cmdline.txt, #24850
        Attached File- => Added minusp_invar.txt, #24851
        Attached File- => Added Rrnp_invar.txt, #24852

    Back to the top

    Powered by Savane 3.3