From 4f0eac8984e7ea2e2d480a0b958fc3c5f4ea2937 Mon Sep 17 00:00:00 2001 From: Cody Tapscott <84105208+topolarity@users.noreply.github.com> Date: Wed, 4 Sep 2024 17:29:16 -0400 Subject: [PATCH] contrib: include private libdir in `ldflags` on macOS (#55687) The private libdir is used on macOS, so it needs to be included in our `ldflags` --- contrib/julia-config.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/julia-config.jl b/contrib/julia-config.jl index df17b967c1ed75..c692b3f522fb25 100755 --- a/contrib/julia-config.jl +++ b/contrib/julia-config.jl @@ -67,9 +67,7 @@ function ldlibs(doframework) "julia" end if Sys.isunix() - return "-Wl,-rpath,$(shell_escape(libDir())) " * - (Sys.isapple() ? string() : "-Wl,-rpath,$(shell_escape(private_libDir())) ") * - "-l$libname" + return "-Wl,-rpath,$(shell_escape(libDir())) -Wl,-rpath,$(shell_escape(private_libDir())) -l$libname" else return "-l$libname -lopenlibm" end