pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Always use -fPIC, not -fpic, when building shared libraries with
6+ messages / 1 participants
[nested] [flat]

* pgsql: Always use -fPIC, not -fpic, when building shared libraries with
@ 2017-06-01 17:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-01 17:33 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cee7238de58fca9c0a3c7f5012eb4f905f80fde6

Modified Files
--------------
doc/src/sgml/dfunc.sgml        | 26 ++++++++++++--------------
src/makefiles/Makefile.linux   |  7 +++----
src/makefiles/Makefile.netbsd  |  4 ----
src/makefiles/Makefile.openbsd |  4 ----
4 files changed, 15 insertions(+), 26 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Always use -fPIC, not -fpic, when building shared libraries with
@ 2017-06-01 17:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-01 17:33 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/894ce0e97ab1211d07f2b9630ea1b1139734cda8

Modified Files
--------------
doc/src/sgml/dfunc.sgml        | 26 ++++++++++++--------------
src/makefiles/Makefile.linux   |  7 +++----
src/makefiles/Makefile.netbsd  |  4 ----
src/makefiles/Makefile.openbsd |  4 ----
4 files changed, 15 insertions(+), 26 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Always use -fPIC, not -fpic, when building shared libraries with
@ 2017-06-01 17:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-01 17:33 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_2_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a378b9bc287d58caf8c51485362408b01c566955

Modified Files
--------------
doc/src/sgml/dfunc.sgml        | 26 ++++++++++++--------------
src/makefiles/Makefile.linux   |  7 +++----
src/makefiles/Makefile.netbsd  |  4 ----
src/makefiles/Makefile.openbsd |  4 ----
4 files changed, 15 insertions(+), 26 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Always use -fPIC, not -fpic, when building shared libraries with
@ 2017-06-01 17:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-01 17:33 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8d9b4fe01b5e717ad85d3a3beeabf8e212524b04

Modified Files
--------------
doc/src/sgml/dfunc.sgml        | 26 ++++++++++++--------------
src/makefiles/Makefile.linux   |  7 +++----
src/makefiles/Makefile.netbsd  |  4 ----
src/makefiles/Makefile.openbsd |  4 ----
4 files changed, 15 insertions(+), 26 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Always use -fPIC, not -fpic, when building shared libraries with
@ 2017-06-01 17:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-01 17:33 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e9a3c047a5fc701d2efb776be2b351645ea001c8

Modified Files
--------------
doc/src/sgml/dfunc.sgml        | 26 ++++++++++++--------------
src/makefiles/Makefile.linux   |  7 +++----
src/makefiles/Makefile.netbsd  |  4 ----
src/makefiles/Makefile.openbsd |  4 ----
4 files changed, 15 insertions(+), 26 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Always use -fPIC, not -fpic, when building shared libraries with
@ 2017-06-01 17:33  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2017-06-01 17:33 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/68938ab8ea0edf877e6e2821cec9e70ef2befa92

Modified Files
--------------
doc/src/sgml/dfunc.sgml        | 26 ++++++++++++--------------
src/makefiles/Makefile.linux   |  7 +++----
src/makefiles/Makefile.netbsd  |  4 ----
src/makefiles/Makefile.openbsd |  4 ----
4 files changed, 15 insertions(+), 26 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2017-06-01 17:33 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-06-01 17:33 pgsql: Always use -fPIC, not -fpic, when building shared libraries with Tom Lane <tgl@sss.pgh.pa.us>
2017-06-01 17:33 pgsql: Always use -fPIC, not -fpic, when building shared libraries with Tom Lane <tgl@sss.pgh.pa.us>
2017-06-01 17:33 pgsql: Always use -fPIC, not -fpic, when building shared libraries with Tom Lane <tgl@sss.pgh.pa.us>
2017-06-01 17:33 pgsql: Always use -fPIC, not -fpic, when building shared libraries with Tom Lane <tgl@sss.pgh.pa.us>
2017-06-01 17:33 pgsql: Always use -fPIC, not -fpic, when building shared libraries with Tom Lane <tgl@sss.pgh.pa.us>
2017-06-01 17:33 pgsql: Always use -fPIC, not -fpic, when building shared libraries with Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox