Skip to content

Commit

Permalink
contrib: include private libdir in ldflags on macOS (#55687)
Browse files Browse the repository at this point in the history
The private libdir is used on macOS, so it needs to be included in our
`ldflags`
  • Loading branch information
topolarity authored and kshyatt committed Sep 12, 2024
1 parent f603952 commit 29f9098
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contrib/julia-config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29f9098

Please sign in to comment.