From 9da58707e6ecf04a17cc514eb0dec15a97a2b45d Mon Sep 17 00:00:00 2001 From: felix Date: Thu, 12 Dec 2024 14:54:16 +0100 Subject: [PATCH] csc: use -rpath option value when invoking postinstall program on mac os --- csc.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/csc.scm b/csc.scm index 3bdb205f..9ee459c9 100644 --- a/csc.scm +++ b/csc.scm @@ -971,9 +971,10 @@ EOF (list "-change" lib (if deployed (make-pathname "@executable_path" lib) - (make-pathname (if host-mode - host-libdir - TARGET_RUN_LIB_HOME) + (make-pathname (or rpath + (if host-mode + host-libdir + TARGET_RUN_LIB_HOME)) lib)) target-filename)))) (unless keep-files -- 2.42.0