configure fails for perl check on CentOS8

Kyotaro Horiguchi <horikyota.ntt@gmail.com>

From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2019-10-10T05:46:11Z
Lists: pgsql-hackers

Attachments

Hello, While I'm moving to CentOS8 environment, I got stuck at
./configure with the following error.

configure: error: libperl library is requred for Perl

It complains that it needs -fPIC.

Configure uses only $Config{ccflags}, but it seems that
$Config{cccdlflags} is also required. The attached patch make
./configure success. (configure itself is excluded in the patch.)

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center

Commits

  1. Use CFLAGS_SL while probing linkability of libperl.

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