forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcee7238
committed
Always use -fPIC, not -fpic, when building shared libraries with gcc.
On some platforms, -fpic fails for sufficiently large shared libraries.We've mostly not hit that boundary yet, but there are some extensionssuch as Citus and pglogical where it's becoming a problem. A bit ofresearch suggests that the penalty for -fPIC is small, in thesingle-digit-percentage range --- and there's none at all on popularplatforms such as x86_64. So let's just default to -fPIC everywhereand provide one less thing for extension developers to worry about.Per complaint from Christoph Berg. Back-patch to all supported branches.(I did not bother to touch the recently-removed Makefiles for sco andunixware in the back branches, though. We'd have no way to test thatit doesn't break anything on those platforms.)Discussion:https://postgr.es/m/20170529155850.qojdfrwkkqnjb3ap@msg.df7cb.de1 parent4a3bb96 commitcee7238
File tree
4 files changed
+15
-26
lines changed- doc/src/sgml
- src/makefiles
4 files changed
+15
-26
lines changedLines changed: 12 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
| 64 | + | |
65 | 65 |
| |
66 | 66 |
| |
67 |
| - | |
| 67 | + | |
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
| 83 | + | |
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
90 |
| - | |
| 90 | + | |
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 |
| - | |
126 |
| - | |
127 |
| - | |
| 125 | + | |
128 | 126 |
| |
129 | 127 |
| |
130 | 128 |
| |
131 |
| - | |
| 129 | + | |
132 | 130 |
| |
133 | 131 |
| |
134 | 132 |
| |
| |||
155 | 153 |
| |
156 | 154 |
| |
157 | 155 |
| |
158 |
| - | |
| 156 | + | |
159 | 157 |
| |
160 | 158 |
| |
161 | 159 |
| |
162 | 160 |
| |
163 |
| - | |
| 161 | + | |
164 | 162 |
| |
165 | 163 |
| |
166 | 164 |
| |
| |||
173 | 171 |
| |
174 | 172 |
| |
175 | 173 |
| |
176 |
| - | |
| 174 | + | |
177 | 175 |
| |
178 | 176 |
| |
179 |
| - | |
| 177 | + | |
180 | 178 |
| |
181 | 179 |
| |
182 | 180 |
| |
| |||
190 | 188 |
| |
191 | 189 |
| |
192 | 190 |
| |
193 |
| - | |
| 191 | + | |
194 | 192 |
| |
195 | 193 |
| |
196 | 194 |
| |
| |||
200 | 198 |
| |
201 | 199 |
| |
202 | 200 |
| |
203 |
| - | |
| 201 | + | |
204 | 202 |
| |
205 | 203 |
| |
206 | 204 |
| |
|
Lines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
| 7 | + | |
6 | 8 |
| |
7 | 9 |
| |
8 |
| - | |
9 | 10 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
| 11 | + | |
13 | 12 |
| |
14 | 13 |
| |
15 | 14 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 | 12 |
| |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 | 13 |
| |
18 | 14 |
| |
19 | 15 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 | 10 |
| |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 | 11 |
| |
16 | 12 |
| |
17 | 13 |
| |
|
0 commit comments
Comments
(0)