Commit d995fd6
committed
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.com1 parent 44273ce commit d995fd6
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18490 | 18490 | | |
18491 | 18491 | | |
18492 | 18492 | | |
| 18493 | + | |
| 18494 | + | |
| 18495 | + | |
| 18496 | + | |
18493 | 18497 | | |
18494 | 18498 | | |
18495 | 18499 | | |
| |||
18519 | 18523 | | |
18520 | 18524 | | |
18521 | 18525 | | |
| 18526 | + | |
18522 | 18527 | | |
18523 | 18528 | | |
18524 | 18529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2253 | 2253 | | |
2254 | 2254 | | |
2255 | 2255 | | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
2256 | 2260 | | |
2257 | 2261 | | |
2258 | 2262 | | |
| |||
2264 | 2268 | | |
2265 | 2269 | | |
2266 | 2270 | | |
| 2271 | + | |
2267 | 2272 | | |
2268 | 2273 | | |
2269 | 2274 | | |
| |||
0 commit comments