forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit85a2a89
committed
Allow CFLAGS from configure's environment to override automatic CFLAGS.
Previously, configure would add any switches that it chose of its ownaccord to the end of the user-specified CFLAGS string. Since mostcompilers process these left-to-right, this meant that configure's choiceswould override the user-specified flags in case of conflicts. We'd ratherthat worked the other way around, so adjust the logic to put the user'sstring at the end not the beginning.There does not seem to be a need for a similar behavior change for CPPFLAGSor LDFLAGS: in those, the earlier switches tend to win (think -I or -Lbehavior) so putting the user's string at the front is fine.Backpatch to 9.4 but not earlier. I'm not planning to run buildfarm memberguar on older branches, and it seems a bit risky to change this behaviorin long-stable branches.1 parentfd3d894 commit85a2a89
2 files changed
+22
-4
lines changedLines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4386 | 4386 |
| |
4387 | 4387 |
| |
4388 | 4388 |
| |
| 4389 | + | |
| 4390 | + | |
| 4391 | + | |
| 4392 | + | |
4389 | 4393 |
| |
4390 | 4394 |
| |
4391 | 4395 |
| |
| |||
4397 | 4401 |
| |
4398 | 4402 |
| |
4399 | 4403 |
| |
4400 |
| - | |
| 4404 | + | |
4401 | 4405 |
| |
4402 | 4406 |
| |
4403 | 4407 |
| |
| |||
4904 | 4908 |
| |
4905 | 4909 |
| |
4906 | 4910 |
| |
4907 |
| - | |
| 4911 | + | |
| 4912 | + | |
| 4913 | + | |
| 4914 | + | |
| 4915 | + | |
| 4916 | + | |
4908 | 4917 |
| |
4909 | 4918 |
| |
4910 | 4919 |
| |
|
Lines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
414 | 414 |
| |
415 | 415 |
| |
416 | 416 |
| |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
417 | 421 |
| |
418 | 422 |
| |
419 | 423 |
| |
| |||
425 | 429 |
| |
426 | 430 |
| |
427 | 431 |
| |
428 |
| - | |
| 432 | + | |
429 | 433 |
| |
430 | 434 |
| |
431 | 435 |
| |
| |||
488 | 492 |
| |
489 | 493 |
| |
490 | 494 |
| |
491 |
| - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
492 | 501 |
| |
493 | 502 |
| |
494 | 503 |
| |
|
0 commit comments
Comments
(0)