0001-Use-exported-symbols-list-on-macOS-for-loadable-modu.patch

text/plain

Filename: 0001-Use-exported-symbols-list-on-macOS-for-loadable-modu.patch
Type: text/plain
Part: 0
Message: macos exported symbols list not used for loadable modules

Patch

Format: format-patch
Series: patch 0001
Subject: Use exported symbols list on macOS for loadable modules as well
File+
src/Makefile.shlib 1 1
From 9122943d8e15497254f2f40c55b38ebbbf13241f Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter@eisentraut.org>
Date: Tue, 3 Jun 2025 09:41:51 +0200
Subject: [PATCH 1/2] Use exported symbols list on macOS for loadable modules
 as well

---
 src/Makefile.shlib | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index fa81f6ffdd6..ff616beeb95 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -117,7 +117,7 @@ ifeq ($(PORTNAME), darwin)
     shlib_major		= lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)
   else
     # loadable module
-    LINK.shared		= $(COMPILER) -bundle
+    LINK.shared		= $(COMPILER) -bundle $(exported_symbols_list)
   endif
   BUILD.exports		= $(AWK) '/^[^\#]/ {printf "_%s\n",$$1}' $< >$@
   exports_file		= $(SHLIB_EXPORTS:%.txt=%.list)
-- 
2.49.0