Re: configure fails for perl check on CentOS8
Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2019-10-16T14:41:19Z
Lists: pgsql-hackers
On Wed, Oct 16, 2019 at 8:32 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: > > Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes: > > On Tue, Oct 15, 2019 at 6:45 AM Kyotaro Horiguchi > > <horikyota.ntt@gmail.com> wrote: > >> The problematic command line boils down to: > >> $ ./configure --with-perl CFLAGS=-O0 > >> It is bash-aliased and survived without being found for a long time on > >> my Cent7 environment, but CentOS8 doesn't allow that. > > I don't quite understand why that wouldn't work. > > >> By the way, is there any official way to specify options like -O0 > >> while configure time? > > > CFLAGS=-O0 configure --with-perl ... > > The way Horiguchi-san did it has been supported by autoconf for > a good long time now, so I don't think command line syntax is > the issue. Ah. > Could that CFLAGS setting be interfering with some > feature test in our configure script? > > It looks like you need CFLAGS='-O0 -fPIC' on CentOS 8 when building with perl. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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