FS#6433 - Allow overriding default-generated compiler flags.

Attached to Project: OpenTTD
Opened by Grzegorz Duczyński (adf88) - Friday, 18 March 2016, 18:34 GMT
Type Feature Request
Category Build system
Status New
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


The 'configure' script generates some flags for the compiler (CFLAGS, CXXFLGAS etc.). Also users can add their own flags by passing them to the script. However, user flags have lower priority because automatic flags are added behind them. It means that it is not possible to override the auto-generated flags e.g. it is not possible to turn off some '-Wxxx' if 'configure' script decides to use it.

If auto-generated flags were put before user flags this would not be a problem anymore. While users have full control on what flags they pass to the script, they have limited control on what flags will be generated automatically.

Patch attached (-p0).
This task depends upon