Re: configure fails for perl check on CentOS8
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>,
pgsql-hackers@lists.postgresql.org
Date: 2019-10-20T23:36:39Z
Lists: pgsql-hackers
Attachments
- 0001-rearrange-CFLAGS_SL-generation.patch (text/x-diff) patch 0001
- 0002-fix-libperl-probe.patch (text/x-diff) patch 0002
Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes: > On 10/20/19 1:23 PM, Tom Lane wrote: >> The right way to fix it, likely, is to add CFLAGS_SL while performing this >> particular autoconf test, as that would replicate the switches used for >> plperl (and it turns out that adding -fPIC does solve this problem). >> But the configure script doesn't currently know about CFLAGS_SL, so we'd >> have to do some refactoring to approach it that way. Moving that logic >> from the platform-specific Makefiles into configure doesn't seem >> unreasonable, but it would make the patch bigger. > Sounds like a plan. I agree it's annoying to have to do something large > for something so trivial. Turns out it's not really that bad. We just have to transfer the responsibility for setting CFLAGS_SL from the platform Makefiles to the platform template files. (As a bonus, it'd be possible to allow users to override CFLAGS_SL during configure, as they can do for CFLAGS. But I didn't mess with that here.) I checked that this fixes the Fedora build problem, but I've not really tested it on any other platform. Still, there's not that much to go wrong, one would think. regards, tom lane
Commits
-
Use CFLAGS_SL while probing linkability of libperl.
- 8835e0bd4e2d 9.5.20 landed
- 6d2b18d0701b 9.4.25 landed
- d995fd667f6d 13.0 landed
- ca658c91ae72 12.1 landed
- 4e19bd41d965 11.6 landed
- 34621cb12098 9.6.16 landed
- 328b81348cc8 10.11 landed
-
Select CFLAGS_SL at configure time, not in platform-specific Makefiles.
- e167b1ae37ad 10.11 landed
- 99c51d5ed88c 11.6 landed
- 727c2ccfefb5 9.4.25 landed
- 62ca50ad7ad0 9.6.16 landed
- 11330c311a17 9.5.20 landed
- aa5bb828af53 12.1 landed
- 44273ce4f664 13.0 landed