]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Report configured port in MSVC built pg_config
authorAndrew Dunstan <andrew@dunslane.net>
Fri, 28 May 2021 13:26:30 +0000 (09:26 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Fri, 28 May 2021 13:32:24 +0000 (09:32 -0400)
This is a long standing omission, discovered when trying to write code
that relied on it.

Backpatch to all live branches.

src/tools/msvc/Solution.pm

index b6a043db5959d12fd6c2d703060741a4be3847ab..80bc7439c9f079d41b6666af4ccc24d7c2561ea9 100644 (file)
@@ -864,6 +864,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;
 }