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)
12 lines
780 B
Diff
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
|