From 7fffb5b4df4b60c8c36b76062333ed22e6c79148 Mon Sep 17 00:00:00 2001 From: Erik Grinaker Date: Thu, 26 Jun 2025 12:33:39 +0200 Subject: [PATCH] pgxn/neon: fix macOS build --- pgxn/neon/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pgxn/neon/Makefile b/pgxn/neon/Makefile index bf7aeb4108..f3053c2c76 100644 --- a/pgxn/neon/Makefile +++ b/pgxn/neon/Makefile @@ -5,6 +5,7 @@ MODULE_big = neon OBJS = \ $(WIN32RES) \ communicator.o \ + communicator_new.o \ extension_server.o \ file_cache.o \ hll.o \ @@ -29,6 +30,11 @@ PG_CPPFLAGS = -I$(libpq_srcdir) SHLIB_LINK_INTERNAL = $(libpq) SHLIB_LINK = -lcurl +UNAME_S := $(shell uname -s) +ifeq ($(shell uname), Darwin) + SHLIB_LINK += -framework Security -framework CoreFoundation -framework SystemConfiguration +endif + EXTENSION = neon DATA = \ neon--1.0.sql \