forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitea53100
committed
Build src/port files as a library with -fPIC, and use that in libpq.
libpq and ecpg need shared-library-friendly versions of assorted src/port/and src/common/ modules. Up to now, they got those by symlinking theindividual source files and compiling them locally. That's baroque, and apain to maintain, and it results in some amount of duplicated compile work.It might've made sense when only a couple of files were needed, but thelist has grown and grown and grown :-(It makes more sense to have the originating directory build a third variantof libpgport.a/libpgcommon.a containing modules built with $(CFLAGS_SL),and just link that into the shared library. Unused files won't get linked,so the end result should be the same.This patch makes a down payment on that idea by having src/port/ buildsuch a library and making libpq use it. If the buildfarm doesn't exposefatal problems with the approach, I'll extend it to the other cases.Discussion:https://postgr.es/m/13022.1538003440@sss.pgh.pa.us1 parentce4887b commitea53100
File tree
4 files changed
+55
-63
lines changed- src
- interfaces/libpq
- port
4 files changed
+55
-63
lines changedLines changed: 0 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 | 4 |
| |
26 | 5 |
| |
27 | 6 |
| |
|
Lines changed: 11 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 | 27 |
| |
33 | 28 |
| |
34 | 29 |
| |
35 | 30 |
| |
36 | 31 |
| |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 | 32 |
| |
49 | 33 |
| |
50 | 34 |
| |
| |||
62 | 46 |
| |
63 | 47 |
| |
64 | 48 |
| |
65 |
| - | |
66 |
| - | |
| 49 | + | |
67 | 50 |
| |
68 | 51 |
| |
69 | 52 |
| |
| |||
76 | 59 |
| |
77 | 60 |
| |
78 | 61 |
| |
79 |
| - | |
| 62 | + | |
| 63 | + | |
80 | 64 |
| |
81 |
| - | |
| 65 | + | |
82 | 66 |
| |
83 |
| - | |
| 67 | + | |
84 | 68 |
| |
85 | 69 |
| |
86 | 70 |
| |
| |||
90 | 74 |
| |
91 | 75 |
| |
92 | 76 |
| |
| 77 | + | |
| 78 | + | |
93 | 79 |
| |
94 | 80 |
| |
95 | 81 |
| |
96 | 82 |
| |
97 | 83 |
| |
98 |
| - | |
| 84 | + | |
99 | 85 |
| |
100 |
| - | |
| 86 | + | |
101 | 87 |
| |
102 |
| - | |
103 |
| - | |
104 | 88 |
| |
105 | 89 |
| |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 | 90 |
| |
110 | 91 |
| |
111 | 92 |
| |
| |||
123 | 104 |
| |
124 | 105 |
| |
125 | 106 |
| |
| 107 | + | |
126 | 108 |
| |
127 | 109 |
| |
128 | 110 |
| |
| |||
154 | 136 |
| |
155 | 137 |
| |
156 | 138 |
| |
157 |
| - | |
158 |
| - | |
| 139 | + | |
159 | 140 |
| |
160 | 141 |
| |
161 | 142 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
|
Lines changed: 43 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 |
| - | |
7 |
| - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 |
| |
9 |
| - | |
| 10 | + | |
10 | 11 |
| |
11 | 12 |
| |
12 |
| - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 |
| |
14 | 19 |
| |
15 |
| - | |
| 20 | + | |
16 | 21 |
| |
17 | 22 |
| |
18 | 23 |
| |
| |||
40 | 45 |
| |
41 | 46 |
| |
42 | 47 |
| |
43 |
| - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 |
| |
45 | 52 |
| |
46 |
| - | |
| 53 | + | |
47 | 54 |
| |
48 | 55 |
| |
| 56 | + | |
49 | 57 |
| |
50 | 58 |
| |
51 | 59 |
| |
| |||
59 | 67 |
| |
60 | 68 |
| |
61 | 69 |
| |
62 |
| - | |
| 70 | + | |
63 | 71 |
| |
| 72 | + | |
64 | 73 |
| |
65 |
| - | |
| 74 | + | |
66 | 75 |
| |
| 76 | + | |
67 | 77 |
| |
68 | 78 |
| |
69 |
| - | |
| 79 | + | |
70 | 80 |
| |
| 81 | + | |
71 | 82 |
| |
72 | 83 |
| |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
73 | 101 |
| |
74 | 102 |
| |
75 | 103 |
| |
| |||
92 | 120 |
| |
93 | 121 |
| |
94 | 122 |
| |
| 123 | + | |
| 124 | + | |
95 | 125 |
| |
96 | 126 |
| |
97 | 127 |
| |
| |||
112 | 142 |
| |
113 | 143 |
| |
114 | 144 |
| |
115 |
| - | |
| 145 | + | |
| 146 | + |
0 commit comments
Comments
(0)