~ chicken-core (master) 1510b6b03982d0a8037f9aac99b4a01718563e42
commit 1510b6b03982d0a8037f9aac99b4a01718563e42
Author: felix <felix@call-with-current-continuation.org>
AuthorDate: Wed May 13 16:55:40 2026 +0200
Commit: felix <felix@call-with-current-continuation.org>
CommitDate: Wed May 13 16:55:40 2026 +0200
add preinstall linker-path fixup step on Mac for all other tools as well to ensure tests refer to a proper rpath when calling executables
(thanks to "gahr" for helping to figure this out)
diff --git a/rules.make b/rules.make
index 69d3bc07..5979b628 100644
--- a/rules.make
+++ b/rules.make
@@ -222,6 +222,7 @@ $(1): $(2)$(O) $$(PRIMARY_LIBCHICKEN) $$($(1)-RC_FILE)
$$($(1)-RC_FILE) $$(LINKER_OUTPUT) \
$$(LINKER_LIBRARY_PREFIX)$$(PROGRAM_PREFIX)chicken$$(PROGRAM_SUFFIX)$$(LINKER_LIBRARY_SUFFIX) \
$$(LINKER_LINK_SHARED_PROGRAM_OPTIONS) $$(LIBRARIES)
+ $(PREINSTALL_PROGRAM_FIXUP) $(1)
endef
# Unfortunately, we can't loop over INSTALLED_PROGRAMS here because of
Trap