aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2019-04-09 08:25:39 -0700
committerNoah Misch <noah@leadboat.com>2019-04-09 08:25:43 -0700
commit292e2000e19c5a38fd901b4764e26c638edeac11 (patch)
tree268ee4c89f9255d3b3589500a4f000269b2a66a0 /src
parent7a5677818556a2d3ab02a536c01955e90ddc1ea9 (diff)
downloadpostgresql-292e2000e19c5a38fd901b4764e26c638edeac11.tar.gz
postgresql-292e2000e19c5a38fd901b4764e26c638edeac11.zip
Define WIN32_STACK_RLIMIT throughout win32 and cygwin builds.
The MSVC build system already did this, and commit 617dc6d299c957e2784320382b3277ede01d9c63 used it in a second file. Back-patch to 9.4, like that commit. Discussion: https://postgr.es/m/CAA8=A7_1SWc3+3Z=-utQrQFOtrj_DeohRVt7diA2tZozxsyUOQ@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/tcop/Makefile4
-rw-r--r--src/makefiles/Makefile.cygwin2
-rw-r--r--src/makefiles/Makefile.win322
3 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/tcop/Makefile b/src/backend/tcop/Makefile
index 674302feb79..2320319c4ef 100644
--- a/src/backend/tcop/Makefile
+++ b/src/backend/tcop/Makefile
@@ -14,8 +14,4 @@ include $(top_builddir)/src/Makefile.global
OBJS= dest.o fastpath.o postgres.o pquery.o utility.o
-ifneq (,$(filter $(PORTNAME),cygwin win32))
-override CPPFLAGS += -DWIN32_STACK_RLIMIT=$(WIN32_STACK_RLIMIT)
-endif
-
include $(top_srcdir)/src/backend/common.mk
diff --git a/src/makefiles/Makefile.cygwin b/src/makefiles/Makefile.cygwin
index bb2efed3ce5..2d57b4b0891 100644
--- a/src/makefiles/Makefile.cygwin
+++ b/src/makefiles/Makefile.cygwin
@@ -14,6 +14,8 @@ AROPT = crs
DLSUFFIX = .dll
CFLAGS_SL =
+override CPPFLAGS += -DWIN32_STACK_RLIMIT=$(WIN32_STACK_RLIMIT)
+
ifneq (,$(findstring backend,$(subdir)))
ifeq (,$(findstring conversion_procs,$(subdir)))
ifeq (,$(findstring snowball,$(subdir)))
diff --git a/src/makefiles/Makefile.win32 b/src/makefiles/Makefile.win32
index 354014a0c87..3c8024a715f 100644
--- a/src/makefiles/Makefile.win32
+++ b/src/makefiles/Makefile.win32
@@ -9,6 +9,8 @@ else
BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
endif
+override CPPFLAGS += -DWIN32_STACK_RLIMIT=$(WIN32_STACK_RLIMIT)
+
AROPT = crs
DLSUFFIX = .dll
CFLAGS_SL =