From: Andrew Dunstan Date: Fri, 28 May 2021 13:26:30 +0000 (-0400) Subject: Report configured port in MSVC built pg_config X-Git-Tag: REL_13_4~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c828a7246eed0bf92490660543a072cf3610441a;p=thirdparty%2Fpostgresql.git 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. --- diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 23d55daa2f8..95b6856a32d 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -1172,6 +1172,8 @@ sub GetFakeConfigure $cfg .= ' --with-tcl' if ($self->{options}->{tcl}); $cfg .= ' --with-perl' if ($self->{options}->{perl}); $cfg .= ' --with-python' if ($self->{options}->{python}); + my $port = $self->{options}->{'--with-pgport'}; + $cfg .= " --with-pgport=$port" if defined($port) return $cfg; }