From bd31794df7dc53719740aa8e2ea1578ea2b87285 Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Wed, 11 Jun 2014 19:50:41 -0400 Subject: [PATCH] Consistently define BUILDING_DLL during builds of src/port for Windows. The MSVC build process already did so; this fixes the principal build process to match. Both processes already did likewise for src/common. This lets server builds of src/port reference postgres.exe data symbols. --- src/makefiles/Makefile.cygwin | 4 ++++ src/makefiles/Makefile.win32 | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/makefiles/Makefile.cygwin b/src/makefiles/Makefile.cygwin index bd83e5f723..bb2efed3ce 100644 --- a/src/makefiles/Makefile.cygwin +++ b/src/makefiles/Makefile.cygwin @@ -28,6 +28,10 @@ ifneq (,$(findstring src/common,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif +ifneq (,$(findstring src/port,$(subdir))) +override CPPFLAGS+= -DBUILDING_DLL +endif + ifneq (,$(findstring timezone,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif diff --git a/src/makefiles/Makefile.win32 b/src/makefiles/Makefile.win32 index b18621b2f8..9cb84f2502 100644 --- a/src/makefiles/Makefile.win32 +++ b/src/makefiles/Makefile.win32 @@ -27,6 +27,10 @@ ifneq (,$(findstring src/common,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif +ifneq (,$(findstring src/port,$(subdir))) +override CPPFLAGS+= -DBUILDING_DLL +endif + ifneq (,$(findstring timezone,$(subdir))) override CPPFLAGS+= -DBUILDING_DLL endif