forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd445b41

Neil Conway
The issue has been raised in the past that our build system links each
executable against the maximal set of libraries it might need. So forexample, if one executable requires `libreadline', all executables arelinked against it.The easiest fix is to make use of GNU ld's --as-needed flag, whichignores linker arguments that are not actually needed by the specifiedobject files. The attached patch modifies configure to check for thisflag (when using GNU ld), and if ld supports it, adds the flag toLDFLAGS (we need to do the check since only relatively recent versionsof GNU ld support this capability). Currently only GNU ld is supported;I'm not aware of any other linkers that support this functionality.1 parentdb70a31 commitd445b41
2 files changed
+94
-9
lines changedLines changed: 68 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3622 | 3622 |
| |
3623 | 3623 |
| |
3624 | 3624 |
| |
3625 |
| - | |
3626 |
| - | |
3627 |
| - | |
3628 |
| - | |
3629 |
| - | |
3630 | 3625 |
| |
3631 | 3626 |
| |
3632 | 3627 |
| |
| |||
3856 | 3851 |
| |
3857 | 3852 |
| |
3858 | 3853 |
| |
| 3854 | + | |
3859 | 3855 |
| |
3860 | 3856 |
| |
3861 | 3857 |
| |
| |||
3909 | 3905 |
| |
3910 | 3906 |
| |
3911 | 3907 |
| |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
| 3928 | + | |
| 3929 | + | |
| 3930 | + | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
| 3934 | + | |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
| 3941 | + | |
| 3942 | + | |
| 3943 | + | |
| 3944 | + | |
| 3945 | + | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
| 3955 | + | |
| 3956 | + | |
| 3957 | + | |
| 3958 | + | |
| 3959 | + | |
| 3960 | + | |
| 3961 | + | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
| 3965 | + | |
| 3966 | + | |
| 3967 | + | |
| 3968 | + | |
| 3969 | + | |
3912 | 3970 |
| |
3913 | 3971 |
| |
3914 | 3972 |
| |
| |||
4167 | 4225 |
| |
4168 | 4226 |
| |
4169 | 4227 |
| |
| 4228 | + | |
| 4229 | + | |
| 4230 | + | |
| 4231 | + | |
| 4232 | + | |
4170 | 4233 |
| |
4171 | 4234 |
| |
4172 | 4235 |
| |
|
Lines changed: 26 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
539 | 539 |
| |
540 | 540 |
| |
541 | 541 |
| |
542 |
| - | |
543 |
| - | |
544 |
| - | |
545 | 542 |
| |
546 | 543 |
| |
547 | 544 |
| |
| |||
550 | 547 |
| |
551 | 548 |
| |
552 | 549 |
| |
| 550 | + | |
553 | 551 |
| |
554 | 552 |
| |
555 | 553 |
| |
| |||
560 | 558 |
| |
561 | 559 |
| |
562 | 560 |
| |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
563 | 582 |
| |
564 | 583 |
| |
565 | 584 |
| |
566 | 585 |
| |
567 | 586 |
| |
| 587 | + | |
| 588 | + | |
| 589 | + | |
568 | 590 |
| |
569 | 591 |
| |
570 | 592 |
| |
|
0 commit comments
Comments
(0)