diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-10-21 13:52:26 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-10-21 13:52:26 -0400 |
commit | 8835e0bd4e2d08f4930122cfc4268c8f6ea443b6 (patch) | |
tree | 9d08c02fc1ae1c0b2442d98c47d60b831513bc52 /src/tutorial | |
parent | 11330c311a1770447b76d42f20ede68d28e0ee87 (diff) |
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 'src/tutorial')
0 files changed, 0 insertions, 0 deletions