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

configure.in

  • Tom Lane's avatar
    4e19bd41
    Use CFLAGS_SL while probing linkability of libperl. · 4e19bd41
    Tom Lane authored
    On recent Red Hat platforms (at least RHEL 8 and Fedora 30, maybe older),
    configure's probe for libperl failed if the user forces CFLAGS to be -O0.
    This is because some code in perl's inline.h fails to be optimized away
    at -O0, and said code doesn't work if compiled without -fPIC.
    
    To fix, add CFLAGS_SL to the compile flags used during the libperl probe.
    This is a better simulation of the way that plperl is built, anyway,
    so it might forestall other issues in future.
    
    Per gripe from Kyotaro Horiguchi.  Back-patch to all supported branches,
    since people might want to build older branches on these platforms.
    
    Discussion: https://postgr.es/m/20191010.144533.263180400.horikyota.ntt@gmail.com
    4e19bd41
    History
    Use CFLAGS_SL while probing linkability of libperl.
    Tom Lane authored
    On recent Red Hat platforms (at least RHEL 8 and Fedora 30, maybe older),
    configure's probe for libperl failed if the user forces CFLAGS to be -O0.
    This is because some code in perl's inline.h fails to be optimized away
    at -O0, and said code doesn't work if compiled without -fPIC.
    
    To fix, add CFLAGS_SL to the compile flags used during the libperl probe.
    This is a better simulation of the way that plperl is built, anyway,
    so it might forestall other issues in future.
    
    Per gripe from Kyotaro Horiguchi.  Back-patch to all supported branches,
    since people might want to build older branches on these platforms.
    
    Discussion: https://postgr.es/m/20191010.144533.263180400.horikyota.ntt@gmail.com