]> 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:43 +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 bd83e5f723e139cbdde4d2be18ccc207d86ec1ae..5d70782acd9ac7863dfff8f1ee3b8ad1ce264715 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 snowball,$(subdir)))
index dee2adf7f10f212cc97d6c8c2cf9f174f62add65..f0da19c94d62720592837f5ed8feec940e0eff16 100644 (file)
@@ -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 =