Commit 97c6852f authored by Tom Lane's avatar Tom Lane

Tweak MSVC build system to match changes in 7143b3e8.

Also try to make the comment suggesting that this might be needed
more intelligible.

Per buildfarm.
parent 7143b3e8
...@@ -24,8 +24,9 @@ ifneq ($(PORTNAME), win32) ...@@ -24,8 +24,9 @@ ifneq ($(PORTNAME), win32)
override CFLAGS += $(PTHREAD_CFLAGS) override CFLAGS += $(PTHREAD_CFLAGS)
endif endif
# We can't use Makefile variables here because the MSVC build system scrapes # The MSVC build system scrapes OBJS from this file. If you change any of
# OBJS from this file. # the conditional additions of files to OBJS, update Mkvcbuild.pm to match.
OBJS= fe-auth.o fe-auth-scram.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \ OBJS= fe-auth.o fe-auth-scram.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
fe-protocol2.o fe-protocol3.o pqexpbuffer.o fe-secure.o \ fe-protocol2.o fe-protocol3.o pqexpbuffer.o fe-secure.o \
libpq-events.o libpq-events.o
......
...@@ -182,8 +182,8 @@ sub mkvcbuild ...@@ -182,8 +182,8 @@ sub mkvcbuild
$postgres->AddLibrary('wldap32.lib') if ($solution->{options}->{ldap}); $postgres->AddLibrary('wldap32.lib') if ($solution->{options}->{ldap});
$postgres->FullExportDLL('postgres.lib'); $postgres->FullExportDLL('postgres.lib');
# The OBJS scraper doesn't know about ifdefs, so remove be-secure-openssl.c # The OBJS scraper doesn't know about ifdefs, so remove appropriate files
# if building without OpenSSL # if building without OpenSSL.
if (!$solution->{options}->{openssl}) if (!$solution->{options}->{openssl})
{ {
$postgres->RemoveFile('src/backend/libpq/be-secure-common.c'); $postgres->RemoveFile('src/backend/libpq/be-secure-common.c');
...@@ -242,18 +242,12 @@ sub mkvcbuild ...@@ -242,18 +242,12 @@ sub mkvcbuild
'src/interfaces/libpq/libpq.rc'); 'src/interfaces/libpq/libpq.rc');
$libpq->AddReference($libpgport); $libpq->AddReference($libpgport);
# The OBJS scraper doesn't know about ifdefs, so remove fe-secure-openssl.c # The OBJS scraper doesn't know about ifdefs, so remove appropriate files
# and sha2_openssl.c if building without OpenSSL, and remove sha2.c if # if building without OpenSSL.
# building with OpenSSL.
if (!$solution->{options}->{openssl}) if (!$solution->{options}->{openssl})
{ {
$libpq->RemoveFile('src/interfaces/libpq/fe-secure-common.c'); $libpq->RemoveFile('src/interfaces/libpq/fe-secure-common.c');
$libpq->RemoveFile('src/interfaces/libpq/fe-secure-openssl.c'); $libpq->RemoveFile('src/interfaces/libpq/fe-secure-openssl.c');
$libpq->RemoveFile('src/common/sha2_openssl.c');
}
else
{
$libpq->RemoveFile('src/common/sha2.c');
} }
my $libpqwalreceiver = my $libpqwalreceiver =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment