forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite9a3c04
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 parent2712da8 commite9a3c04
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 | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
| 66 | + | |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
| 69 | + | |
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 |
| - | |
| 87 | + | |
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 |
| - | |
| 94 | + | |
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
116 |
| - | |
117 |
| - | |
| 115 | + | |
118 | 116 |
| |
119 | 117 |
| |
120 | 118 |
| |
121 |
| - | |
| 119 | + | |
122 | 120 |
| |
123 | 121 |
| |
124 | 122 |
| |
| |||
149 | 147 |
| |
150 | 148 |
| |
151 | 149 |
| |
152 |
| - | |
| 150 | + | |
153 | 151 |
| |
154 | 152 |
| |
155 | 153 |
| |
156 | 154 |
| |
157 |
| - | |
| 155 | + | |
158 | 156 |
| |
159 | 157 |
| |
160 | 158 |
| |
| |||
169 | 167 |
| |
170 | 168 |
| |
171 | 169 |
| |
172 |
| - | |
| 170 | + | |
173 | 171 |
| |
174 | 172 |
| |
175 |
| - | |
| 173 | + | |
176 | 174 |
| |
177 | 175 |
| |
178 | 176 |
| |
| |||
188 | 186 |
| |
189 | 187 |
| |
190 | 188 |
| |
191 |
| - | |
| 189 | + | |
192 | 190 |
| |
193 | 191 |
| |
194 | 192 |
| |
| |||
198 | 196 |
| |
199 | 197 |
| |
200 | 198 |
| |
201 |
| - | |
| 199 | + | |
202 | 200 |
| |
203 | 201 |
| |
204 | 202 |
| |
|
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)