Anonymous | Login | 2024-03-29 05:53 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0001423 | [Issue 8 drafts] Shell and Utilities | Objection | Clarification Requested | 2020-11-18 21:28 | 2021-03-11 16:39 | ||
Reporter | joerg | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Withdrawn | ||||
Status | Closed | Product Version | Draft 1.1 | ||||
Name | Jörg Schilling | ||||||
Organization | |||||||
User Reference | |||||||
Section | make | ||||||
Page Number | 2888 | ||||||
Line Number | 97001-97006 | ||||||
Final Accepted Text | |||||||
Summary | 0001423: The make commandline argument macro::=value has unspecified bahavior | ||||||
Description |
It is common accepted behavior that make macro=value overwrites definitions from makefiles. This can be implemented in two ways - evaluate the command line argument before reading makefiles and mark the related macro readonly - evaluate the command line argument after reading makefiles Both methods result in the same result (even though the assumption that command line arguments overwrite makefiles should be specified in the standard). Note that the current text allows a make implementation to evaluate command line macro assignments before reading makefiles witout making them readonly and if this would be done, the assignments in the makefiles would overwrite the commandline arguments. With the command make macro::=value the two possible implementations mentioned above give different results. My gut feeling is that people would expect "make 'macro::=$(macro2)'" expands $(macro2) as defined in the makefiles instead of expanding it as empty macro value, but this needs to be specified in the standard. |
||||||
Desired Action |
After line 97005 after the text "in the order they appear" insert the text: as if the command line macro definitions were evaluated after reading the makefiles |
||||||
Tags | No tags attached. | ||||||
Attached Files | |||||||
|
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |