Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuiteSparse_jll: onlydlopen the libraries if Base.USE_GPL_LIBS is true #50267

Merged
merged 2 commits into from
Jun 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 26 additions & 24 deletions stdlib/SuiteSparse_jll/src/SuiteSparse_jll.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,30 +82,32 @@ else
end

function __init__()
global libamd_handle = dlopen(libamd)
global libamd_path = dlpath(libamd_handle)
global libbtf_handle = dlopen(libbtf)
global libbtf_path = dlpath(libbtf_handle)
global libcamd_handle = dlopen(libcamd)
global libcamd_path = dlpath(libcamd_handle)
global libccolamd_handle = dlopen(libccolamd)
global libccolamd_path = dlpath(libccolamd_handle)
global libcholmod_handle = dlopen(libcholmod)
global libcholmod_path = dlpath(libcholmod_handle)
global libcolamd_handle = dlopen(libcolamd)
global libcolamd_path = dlpath(libcolamd_handle)
global libklu_handle = dlopen(libklu)
global libklu_path = dlpath(libklu_handle)
global libldl_handle = dlopen(libldl)
global libldl_path = dlpath(libldl_handle)
global librbio_handle = dlopen(librbio)
global librbio_path = dlpath(librbio_handle)
global libspqr_handle = dlopen(libspqr)
global libspqr_path = dlpath(libspqr_handle)
global libsuitesparseconfig_handle = dlopen(libsuitesparseconfig)
global libsuitesparseconfig_path = dlpath(libsuitesparseconfig_handle)
global libumfpack_handle = dlopen(libumfpack)
global libumfpack_path = dlpath(libumfpack_handle)
if Base.USE_GPL_LIBS
global libamd_handle = dlopen(libamd)
global libamd_path = dlpath(libamd_handle)
global libbtf_handle = dlopen(libbtf)
global libbtf_path = dlpath(libbtf_handle)
global libcamd_handle = dlopen(libcamd)
global libcamd_path = dlpath(libcamd_handle)
global libccolamd_handle = dlopen(libccolamd)
global libccolamd_path = dlpath(libccolamd_handle)
global libcholmod_handle = dlopen(libcholmod)
global libcholmod_path = dlpath(libcholmod_handle)
global libcolamd_handle = dlopen(libcolamd)
global libcolamd_path = dlpath(libcolamd_handle)
global libklu_handle = dlopen(libklu)
global libklu_path = dlpath(libklu_handle)
global libldl_handle = dlopen(libldl)
global libldl_path = dlpath(libldl_handle)
global librbio_handle = dlopen(librbio)
global librbio_path = dlpath(librbio_handle)
global libspqr_handle = dlopen(libspqr)
global libspqr_path = dlpath(libspqr_handle)
global libsuitesparseconfig_handle = dlopen(libsuitesparseconfig)
global libsuitesparseconfig_path = dlpath(libsuitesparseconfig_handle)
global libumfpack_handle = dlopen(libumfpack)
global libumfpack_path = dlpath(libumfpack_handle)
end
global artifact_dir = dirname(Sys.BINDIR)
end

Expand Down