forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitca658c9
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 awayat -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 parentaa5bb82 commitca658c9
2 files changed
+10
-0
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18615 | 18615 |
| |
18616 | 18616 |
| |
18617 | 18617 |
| |
| 18618 | + | |
| 18619 | + | |
| 18620 | + | |
| 18621 | + | |
18618 | 18622 |
| |
18619 | 18623 |
| |
18620 | 18624 |
| |
| |||
18644 | 18648 |
| |
18645 | 18649 |
| |
18646 | 18650 |
| |
| 18651 | + | |
18647 | 18652 |
| |
18648 | 18653 |
| |
18649 | 18654 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2258 | 2258 |
| |
2259 | 2259 |
| |
2260 | 2260 |
| |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
2261 | 2265 |
| |
2262 | 2266 |
| |
2263 | 2267 |
| |
| |||
2269 | 2273 |
| |
2270 | 2274 |
| |
2271 | 2275 |
| |
| 2276 | + | |
2272 | 2277 |
| |
2273 | 2278 |
| |
2274 | 2279 |
| |
|
0 commit comments
Comments
(0)