1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

PL/Perl portability fix: absorb relevant -D switches from Perl.

Back-patch of commit 3c163a7fc7,
which see for more info.

Also throw in commit b4cc35fbb7,
so Coverity doesn't whine about the back branches.

Ashutosh Sharma, some adjustments by me

Discussion: https://postgr.es/m/CANFyU97OVQ3+Mzfmt3MhuUm5NwPU=-FtbNH5Eb7nZL9ua8=rcA@mail.gmail.com
This commit is contained in:
Tom Lane
2017-07-31 12:38:35 -04:00
parent b4b958251f
commit 456c7dff2a
7 changed files with 82 additions and 13 deletions

13
configure vendored
View File

@ -682,6 +682,7 @@ python_version
python_majorversion
PYTHON
perl_embed_ldflags
perl_embed_ccflags
perl_useshrplib
perl_privlibexp
perl_archlibexp
@ -7318,6 +7319,18 @@ perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
{ $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
$as_echo "$perl_useshrplib" >&6; }
{ $as_echo "$as_me:$LINENO: checking for CFLAGS recommended by Perl" >&5
$as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
perl_ccflags=`$PERL -MConfig -e 'print $Config{ccflags}'`
{ $as_echo "$as_me:$LINENO: result: $perl_ccflags" >&5
$as_echo "$perl_ccflags" >&6; }
{ $as_echo "$as_me:$LINENO: checking for CFLAGS to compile embedded Perl" >&5
$as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
perl_embed_ccflags=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/)}'`
{ $as_echo "$as_me:$LINENO: result: $perl_embed_ccflags" >&5
$as_echo "$perl_embed_ccflags" >&6; }
{ $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
$as_echo_n "checking for flags to link embedded Perl... " >&6; }
pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`