aboutsummaryrefslogtreecommitdiff
path: root/contrib/jsonb_plperl/jsonb_plperl.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-10-21 13:52:25 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-10-21 13:52:25 -0400
commitd995fd667f6d22307864afe18ae91950b23b5b53 (patch)
tree12474c127fe83f148321cf0c57e64d88d9158ede /contrib/jsonb_plperl/jsonb_plperl.c
parent44273ce4f664a1bb34ef8ea9359237344cd6aaec (diff)
downloadpostgresql-d995fd667f6d22307864afe18ae91950b23b5b53.tar.gz
postgresql-d995fd667f6d22307864afe18ae91950b23b5b53.zip
Use CFLAGS_SL while probing linkability of libperl.
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
Diffstat (limited to 'contrib/jsonb_plperl/jsonb_plperl.c')
0 files changed, 0 insertions, 0 deletions