diff --git a/src/LinearAlgebra.jl b/src/LinearAlgebra.jl index 7f45370c..14de2f03 100644 --- a/src/LinearAlgebra.jl +++ b/src/LinearAlgebra.jl @@ -840,7 +840,10 @@ function lbt_openblas_onload_callback() end end -# If users want to lazily load a different BLAS, they'd need to either change this call, or -# clear the datastructures modified by this call and call it again with their own. -libblastrampoline_jll.add_dependency!(OpenBLAS_jll, libopenblas, lbt_openblas_onload_callback) +function __init__() + # If users want to lazily load a different BLAS, they'd need to either change this call, or + # clear the datastructures modified by this call and call it again with their own. + libblastrampoline_jll.add_dependency!(OpenBLAS_jll, libopenblas, lbt_openblas_onload_callback) +end + end # module LinearAlgebra