1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-03 20:02:46 +03:00

Report configured port in MSVC built pg_config

This is a long standing omission, discovered when trying to write code
that relied on it.

Backpatch to all live branches.
This commit is contained in:
Andrew Dunstan
2021-05-28 09:26:30 -04:00
parent 7a4f2e158c
commit abbd70022c

View File

@ -790,6 +790,8 @@ sub GetFakeConfigure
$cfg .= ' --with-tcl' if ($self->{options}->{tcl}); $cfg .= ' --with-tcl' if ($self->{options}->{tcl});
$cfg .= ' --with-perl' if ($self->{options}->{perl}); $cfg .= ' --with-perl' if ($self->{options}->{perl});
$cfg .= ' --with-python' if ($self->{options}->{python}); $cfg .= ' --with-python' if ($self->{options}->{python});
my $port = $self->{options}->{'--with-pgport'};
$cfg .= " --with-pgport=$port" if defined($port)
return $cfg; return $cfg;
} }