]> granicus.if.org Git - postgresql/commitdiff
Define WIN32_STACK_RLIMIT throughout win32 and cygwin builds.
authorNoah Misch <noah@leadboat.com>
Tue, 9 Apr 2019 15:25:39 +0000 (08:25 -0700)
committerNoah Misch <noah@leadboat.com>
Tue, 9 Apr 2019 15:25:42 +0000 (08:25 -0700)
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

src/backend/tcop/Makefile
src/makefiles/Makefile.cygwin
src/makefiles/Makefile.win32

index 674302feb79aa2f4dddc787cb6ccf75492584892..2320319c4ef6f5e0dd9a29c1ff3269730bc3cc4b 100644 (file)
@@ -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
index 3aaa8a9f04b7ed884a6d372afc1abf13aac4aee8..f274d802b1e1f888ec9dcef4ec1d78bebd03b3b8 100644 (file)
@@ -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 libpqwalreceiver,$(subdir)))
index 7abbd01971ad0837c9694e5fc8ba422ac0a82bdd..3dea11e5c2880e24a390a66af512857412348b76 100644 (file)
@@ -8,6 +8,8 @@ BE_DLLLIBS= -L$(top_builddir)/src/backend -lpostgres
 override CPPFLAGS+="-I$(top_srcdir)/src/include/port/win32"
 endif
 
+override CPPFLAGS += -DWIN32_STACK_RLIMIT=$(WIN32_STACK_RLIMIT)
+
 AROPT = crs
 DLSUFFIX = .dll
 CFLAGS_SL =