0002-Refactor-export-symbols-list-handling-on-macOS-a-bit.patch
text/plain
Filename: 0002-Refactor-export-symbols-list-handling-on-macOS-a-bit.patch
Type: text/plain
Part: 1
Patch
Format: format-patch
Series: patch 0002
Subject: Refactor export symbols list handling on macOS a bit
| File | + | − |
|---|---|---|
| src/Makefile.shlib | 3 | 3 |
From 2080a21880c616a76251085d1cd9f6a47728b19e Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter@eisentraut.org>
Date: Tue, 3 Jun 2025 09:43:56 +0200
Subject: [PATCH 2/2] Refactor export symbols list handling on macOS a bit
---
src/Makefile.shlib | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index ff616beeb95..3825af5b228 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -112,17 +112,17 @@ ifeq ($(PORTNAME), darwin)
ifneq ($(SO_MAJOR_VERSION), 0)
version_link = -compatibility_version $(SO_MAJOR_VERSION) -current_version $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
endif
- LINK.shared = $(COMPILER) -dynamiclib -install_name '$(libdir)/lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)' $(version_link) $(exported_symbols_list)
+ LINK.shared = $(COMPILER) -dynamiclib -install_name '$(libdir)/lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)' $(version_link)
shlib = lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)
shlib_major = lib$(NAME).$(SO_MAJOR_VERSION)$(DLSUFFIX)
else
# loadable module
- LINK.shared = $(COMPILER) -bundle $(exported_symbols_list)
+ LINK.shared = $(COMPILER) -bundle
endif
BUILD.exports = $(AWK) '/^[^\#]/ {printf "_%s\n",$$1}' $< >$@
exports_file = $(SHLIB_EXPORTS:%.txt=%.list)
ifneq (,$(exports_file))
- exported_symbols_list = -exported_symbols_list $(exports_file)
+ LINK.shared += -exported_symbols_list $(exports_file)
endif
endif
--
2.49.0