Re: configure fails for perl check on CentOS8 - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: configure fails for perl check on CentOS8
Date
Msg-id CAA8=A78azTWFgC6FZ+AWRt0-12DCAT43KPmr9__6WbvXXuDquQ@mail.gmail.com
Whole thread Raw
In response to Re: configure fails for perl check on CentOS8  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: configure fails for perl check on CentOS8
List 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



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Questions/Observations related to Gist vacuum
Next
From: Stephen Frost
Date:
Subject: Re: v12 and pg_restore -f-