Skip to content

Commit

Permalink
[Runner] Add ${host_prefix}/lib64 to LD_LIBRARY_PATH (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Feb 26, 2024
1 parent a4ef056 commit 0ab7137
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Runner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ function ld_library_path(target::AbstractPlatform,
host::AbstractPlatform,
prefix::String="",
host_libdir::String="";
csl_paths::Bool=true)
csl_paths::Bool=true,
host_lib64::Bool=nbits(host)==64)
# Helper for generating the library include path for a target. MacOS, as usual,
# puts things in slightly different place.
function target_lib_dir(p::AbstractPlatform)
Expand Down Expand Up @@ -88,6 +89,10 @@ function ld_library_path(target::AbstractPlatform,
# Libdir of the host platform, to run programs in `HostBuildDependency`
host_libdir,
)
if host_lib64
# Include `${host_prefix}/lib64` too.
push!(paths, "$(host_libdir)64")
end
end

push!(paths,
Expand Down

0 comments on commit 0ab7137

Please sign in to comment.