Consistently define BUILDING_DLL during builds of src/port for Windows.
authorNoah Misch <noah@leadboat.com>
Wed, 11 Jun 2014 23:50:41 +0000 (19:50 -0400)
committerNoah Misch <noah@leadboat.com>
Wed, 11 Jun 2014 23:50:41 +0000 (19:50 -0400)
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
src/makefiles/Makefile.win32

index bd83e5f723e139cbdde4d2be18ccc207d86ec1ae..bb2efed3ce5b788ccf56c9004bba7727843bdb59 100644 (file)
@@ -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
index b18621b2f8b92c5f25dc16e848295fbc70904617..9cb84f2502b4edcd7adfb2c6df661f52db7cfe87 100644 (file)
@@ -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