diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-06-01 13:32:56 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-06-01 13:32:56 -0400 |
commit | 894ce0e97ab1211d07f2b9630ea1b1139734cda8 (patch) | |
tree | 9ce42fb7b39709594f901d3e75464c10eef55d2f /contrib/postgres_fdw/postgres_fdw.c | |
parent | 54676c72c91f3aa22714da49f0cbcc205e3dc5b1 (diff) | |
download | postgresql-894ce0e97ab1211d07f2b9630ea1b1139734cda8.tar.gz postgresql-894ce0e97ab1211d07f2b9630ea1b1139734cda8.zip |
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 extensions
such as Citus and pglogical where it's becoming a problem. A bit of
research suggests that the penalty for -fPIC is small, in the
single-digit-percentage range --- and there's none at all on popular
platforms such as x86_64. So let's just default to -fPIC everywhere
and 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 and
unixware in the back branches, though. We'd have no way to test that
it doesn't break anything on those platforms.)
Discussion: https://postgr.es/m/20170529155850.qojdfrwkkqnjb3ap@msg.df7cb.de
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions