bugmake - Bugs: bug #32871, Incorrect content returned by...

 
 

bug #32871: Incorrect content returned by $(value) in recipe for target specific variable

Submitter:  None
Submitted:  Mon 21 Mar 2011 07:11:39 PM UTC
Votes: 1
 
Severity:  3 - Normal Item Group:  Bug
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  3.82 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  Verified
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 02 May 2011 12:20:15 PM UTC, comment #1: 

I agree, this is a bug.

Paul D. Smith <psmith>
Group administrator
Mon 21 Mar 2011 07:11:39 PM UTC, original submission:  

If a global variable is added to as a target specific variable, then using $(value ...) in a recipe gets the wrong value.

Given the attached makefile, when built with GNU Make 3.82 I get the following output:

$(value DEFS) = FOO
$(DEFS)       = BAR FOO

but I was expecting to get:

$(value DEFS) = BAR FOO
$(DEFS)       = BAR FOO

Maybe I misunderstand the $(value) function, but as DEFS does not contain reference to any other variable I was expecting the content of DEFS to be the same as the expanded value of DEFS.

regards,
Rob.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #22981:  makefile added by None (109B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rubrown (Voted in favor of this item)
  • -email is unavailable- added by psmith (Posted a comment)
  •  

    There is 1 vote so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-03 rubrown Carbon-Copy- Added rubrown
    2011-05-02 psmith Triage StatusNone Verified
    2011-03-21 None Attached File- Added makefile, #22981

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code