Skip to content

Commit 4aac5ae

Browse files
authored
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`
1 parent e217f93 commit 4aac5ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contrib/julia-config.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ function ldlibs(doframework)
6767
"julia"
6868
end
6969
if Sys.isunix()
70-
return "-Wl,-rpath,$(shell_escape(libDir())) " *
71-
(Sys.isapple() ? string() : "-Wl,-rpath,$(shell_escape(private_libDir())) ") *
72-
"-l$libname"
70+
return "-Wl,-rpath,$(shell_escape(libDir())) -Wl,-rpath,$(shell_escape(private_libDir())) -l$libname"
7371
else
7472
return "-l$libname -lopenlibm"
7573
end

0 commit comments

Comments
 (0)