forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc74f48a
committed
Prevent accidental linking of system-supplied copies of libpq.so etc.
Back-patch commitdddfc4c, which broke LDFLAGS and related Makefilevariables into two parts, one for within-build-tree library references andone for external libraries, to ensure that the order of -L flags has allof the former before all of the latter. This turns out to fix a problemrecently noted on buildfarm member peripatus, that we attempted toincorporate code from libpgport.a into a shared library. That will fail onplatforms that are sticky about putting non-PIC code into shared libraries.(It's quite surprising we hadn't seen such failures before, since the codein question has been like that for a long time.)I think that peripatus' problem could have been fixed with just a subsetof this patch; but since the previous issue of accidentally linking to thewrong copy of a Postgres shlib seems likely to bite people in the field,let's just back-patch the whole change. Now that commitdddfc4c hassurvived some beta testing, I'm less afraid to back-patch it than I wasat the time.This also fixes undesired inclusion of "-DFRONTEND" in pg_config's CPPFLAGSoutput (in 9.6 and up) and undesired inclusion of "-L../../src/common" inits LDFLAGS output (in all supported branches).Back-patch to v10 and older branches; this is already in v11.Discussion:https://postgr.es/m/20180704234304.bq2dxispefl65odz@ler-imac.local1 parentb0da7ec commitc74f48a
File tree
30 files changed
+64
-47
lines changed- contrib
- dblink
- hstore_plperl
- hstore_plpython
- ltree_plpython
- oid2name
- postgres_fdw
- spi
- vacuumlo
- src
- backend/replication/libpqwalreceiver
- bin
- initdb
- pg_basebackup
- pg_ctl
- pg_dump
- pg_rewind
- pg_upgrade
- pgbench
- psql
- scripts
- common
- interfaces
- ecpg
- compatlib
- ecpglib
- pgtypeslib
- test
- compat_informix
- libpq/test
- makefiles
- test/examples
- tools/findoidjoins
30 files changed
+64
-47
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
| 31 | + | |
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
21 |
| - | |
22 | 20 |
| |
23 | 21 |
| |
24 | 22 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
|
Lines changed: 17 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
276 |
| - | |
277 |
| - | |
278 |
| - | |
279 |
| - | |
280 |
| - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
281 | 290 |
| |
282 |
| - | |
| 291 | + | |
283 | 292 |
| |
284 |
| - | |
| 293 | + | |
285 | 294 |
| |
286 |
| - | |
| 295 | + | |
287 | 296 |
| |
288 | 297 |
| |
289 | 298 |
| |
|
Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
24 |
| - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 |
| |
30 | 34 |
| |
31 | 35 |
| |
| |||
70 | 74 |
| |
71 | 75 |
| |
72 | 76 |
| |
| 77 | + | |
| 78 | + | |
73 | 79 |
| |
74 | 80 |
| |
75 | 81 |
| |
|
0 commit comments
Comments
(0)