Files
MINGW-packages/mingw-w64-postgresql/postgresql-13.1-Wl-stack.patch
Jeremy Drake aa468279e9 postgresql: fix clang build
use -Wl,--stack, instead of -Wl,--stack=

comment out static assert on WSA_INVALID_EVENT that clang thought was
not a compile-time constant.

copy pre-packaged pgevent.def instead of using the (broken)
auto-generated version (see src/bin/pgevent/README)
2021-07-31 12:41:11 -07:00

12 lines
780 B
Diff

--- postgresql-13.1/src/backend/Makefile.orig 2021-07-17 14:36:59.770624700 -0700
+++ postgresql-13.1/src/backend/Makefile 2021-07-17 14:37:26.364523200 -0700
@@ -85,7 +85,7 @@
LIBS += -lsecur32
postgres: $(OBJS) $(WIN32RES)
- $(CC) $(CFLAGS) $(call expand_subsys,$(OBJS)) $(WIN32RES) $(LDFLAGS) $(LDFLAGS_EX) -Wl,--stack=$(WIN32_STACK_RLIMIT) -Wl,--export-all-symbols -Wl,--out-implib=libpostgres.dll.a $(LIBS) -o $@$(X)
+ $(CC) $(CFLAGS) $(call expand_subsys,$(OBJS)) $(WIN32RES) $(LDFLAGS) $(LDFLAGS_EX) -Wl,--stack,$(WIN32_STACK_RLIMIT) -Wl,--export-all-symbols -Wl,--out-implib=libpostgres.dll.a $(LIBS) -o $@$(X)
# libpostgres.a is actually built in the preceding rule, but we need this to
# ensure it's newer than postgres; see notes in src/backend/parser/Makefile