Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

makefiles

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Tom Lane authored
    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
    cee7238d
    History