>From 4be3327532d3f8bcc91a9d33fbef86251aced9a5 Mon Sep 17 00:00:00 2001
From: Regina Obe <lr@pcorp.us>
Date: Thu, 4 Apr 2024 22:26:53 -0400
Subject: [PATCH] FIX autoconf build under Msys2/Mingw64

Discussion: https://www.postgresql.org/message-id/flat/000d01da8606%245f63c230%241e2b4690%24%40pcorp.us
---
 src/backend/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/Makefile b/src/backend/Makefile
index 6700aec039..f4b8da6482 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -140,11 +140,11 @@ generated-headers: $(top_builddir)/src/include/storage/lwlocknames.h $(top_build
 
 $(top_builddir)/src/include/storage/lwlocknames.h: storage/lmgr/lwlocknames.h
 	rm -f '$@'
-	$(LN_S) ../../backend/$< '$@'
+	$(LN_S) $(top_builddir)/src/backend/$< '$@'
 
 $(top_builddir)/src/include/utils/wait_event_types.h: utils/activity/wait_event_types.h
 	rm -f '$@'
-	$(LN_S) ../../backend/$< '$@'
+	$(LN_S) $(top_builddir)/src/backend/$< '$@'
 
 utils/probes.o: utils/probes.d $(SUBDIROBJS)
 	$(DTRACE) $(DTRACEFLAGS) -C -G -s $(call expand_subsys,$^) -o $@
-- 
2.42.0.windows.2

