Re: configure fails for perl check on CentOS8

Andrew Dunstan <andrew.dunstan@2ndquadrant.com>

From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2019-10-16T11:38:40Z
Lists: pgsql-hackers
On Tue, Oct 15, 2019 at 6:45 AM Kyotaro Horiguchi
<horikyota.ntt@gmail.com> wrote:

> >
> > Is this error perhaps occurring with a non-vendor Perl installation?
> > What's the exact error message?  config.log might contain some useful
> > clues, too.
>
> The perl package is official one. I found the cause, that's my
> mistake.
>
> 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.
>
> By the way, is there any official way to specify options like -O0
> while configure time?
>


CFLAGS=-O0 configure  --with-perl ...

cheers

andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



Commits

  1. Use CFLAGS_SL while probing linkability of libperl.

  2. Select CFLAGS_SL at configure time, not in platform-specific Makefiles.