diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-01-20 12:51:31 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-01-20 12:51:31 -0500 |
| commit | 0502e854640bd024f349c0df46b7dd6812b8c05c (patch) | |
| tree | 6af170141bcf667a7795b339d7dd727ebd934f34 /src/makefiles | |
| parent | cdc2a70470bdbe3663dc464deb753d6d931bba61 (diff) | |
| download | postgresql-0502e854640bd024f349c0df46b7dd6812b8c05c.tar.gz | |
Try to fix non-MSVC Windows builds in the wake of logical replication.
pgoutput evidently needs to be built without -DBUILDING_DLL. (It seems
like a pretty bad idea that these makefiles need to know exactly where
all the shlibs are in the tree, or maybe what's bad is putting them under
src/backend/. But right now is not the time to redesign that.)
Also, remove "override CPPFLAGS" in pgoutput's Makefile. I don't think
that that actually has any bad consequences, but it's certainly useless
in a directory that has no .h files, and it might be contributing to the
failure somehow.
Per buildfarm.
Diffstat (limited to 'src/makefiles')
| -rw-r--r-- | src/makefiles/Makefile.cygwin | 4 | ||||
| -rw-r--r-- | src/makefiles/Makefile.win32 | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/makefiles/Makefile.cygwin b/src/makefiles/Makefile.cygwin index bb2efed3ce..3aaa8a9f04 100644 --- a/src/makefiles/Makefile.cygwin +++ b/src/makefiles/Makefile.cygwin @@ -16,13 +16,15 @@ CFLAGS_SL = ifneq (,$(findstring backend,$(subdir))) ifeq (,$(findstring conversion_procs,$(subdir))) -ifeq (,$(findstring snowball,$(subdir))) ifeq (,$(findstring libpqwalreceiver,$(subdir))) +ifeq (,$(findstring replication/pgoutput,$(subdir))) +ifeq (,$(findstring snowball,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif endif endif endif +endif ifneq (,$(findstring src/common,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL diff --git a/src/makefiles/Makefile.win32 b/src/makefiles/Makefile.win32 index 5f26a091d2..7abbd01971 100644 --- a/src/makefiles/Makefile.win32 +++ b/src/makefiles/Makefile.win32 @@ -14,13 +14,15 @@ CFLAGS_SL = ifneq (,$(findstring backend,$(subdir))) ifeq (,$(findstring conversion_procs,$(subdir))) -ifeq (,$(findstring snowball,$(subdir))) ifeq (,$(findstring libpqwalreceiver,$(subdir))) +ifeq (,$(findstring replication/pgoutput,$(subdir))) +ifeq (,$(findstring snowball,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif endif endif endif +endif ifneq (,$(findstring src/common,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL |
