1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Use the preferred version of xsubpp, not necessarily the one that came with the

distro version of perl.

David Wheeler and Alex Hunsaker.

Backpatch to 9.1 where it applies cleanly. A simple workaround is available for earlier
branches, and further effort doesn't seem warranted.
This commit is contained in:
Andrew Dunstan
2011-11-26 15:22:32 -05:00
parent 5966bcecf6
commit ba00ab0b11
2 changed files with 9 additions and 3 deletions

View File

@ -13,6 +13,8 @@ use Project;
use Solution;
use Cwd;
use File::Copy;
use Config;
use List::Util qw(first);
use Exporter;
our (@ISA, @EXPORT_OK);
@ -106,11 +108,12 @@ sub mkvcbuild
(my $xsc = $xs) =~ s/\.xs/.c/;
if (Solution::IsNewer("$plperlsrc$xsc","$plperlsrc$xs"))
{
my $xsubppdir = first { -e "$_\\ExtUtils\\xsubpp.BAT" } @INC;
print "Building $plperlsrc$xsc...\n";
system( $solution->{options}->{perl}
. '/bin/perl '
. $solution->{options}->{perl}
. '/lib/ExtUtils/xsubpp -typemap '
. "$xsubppdir/ExtUtils/xsubpp -typemap "
. $solution->{options}->{perl}
. '/lib/ExtUtils/typemap '
. "$plperlsrc$xs "