Skip to content

Commit

Permalink
OpenBLAS_jll build 0.3.7+2
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbuild committed Dec 31, 2019
1 parent 95ca3d2 commit 5c05eba
Show file tree
Hide file tree
Showing 43 changed files with 386 additions and 282 deletions.
404 changes: 202 additions & 202 deletions Artifacts.toml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2019

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name = "OpenBLAS_jll"
uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
version = "0.3.7+1"
version = "0.3.7+2"

[deps]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

[compat]
julia = "1.3"
julia = "1.0"
19 changes: 19 additions & 0 deletions src/OpenBLAS_jll.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
module OpenBLAS_jll

if VERSION < v"1.3.0-rc4"
# We lie a bit in the registry that JLL packages are usable on Julia 1.0-1.2.
# This is to allow packages that might want to support Julia 1.0 to get the
# benefits of a JLL package on 1.3 (requiring them to declare a dependence on
# this JLL package in their Project.toml) but engage in heroic hacks to do
# something other than actually use a JLL package on 1.0-1.2. By allowing
# this package to be installed (but not loaded) on 1.0-1.2, we enable users
# to avoid splitting their package versions into pre-1.3 and post-1.3 branches
# if they are willing to engage in the kinds of hoop-jumping they might need
# to in order to install binaries in a JLL-compatible way on 1.0-1.2. One
# example of this hoop-jumping being to express a dependency on this JLL
# package, then import it wtihin a `VERSION >= v"1.3"` conditional, and use
# the deprecated `build.jl` mechanism to download the binaries through e.g.
# `BinaryProvider.jl`. This should work well for the simplest packages, and
# require greater and greater heroics for more and more complex packages.
error("Unable to import OpenBLAS_jll on Julia versions older than 1.3!")
end

using Pkg, Pkg.BinaryPlatforms, Pkg.Artifacts, Libdl
import Base: UUID

Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/aarch64-linux-gnu-libgfortran3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/aarch64-linux-gnu-libgfortran4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/aarch64-linux-gnu-libgfortran5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/aarch64-linux-musl-libgfortran3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/aarch64-linux-musl-libgfortran4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/aarch64-linux-musl-libgfortran5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/arm-linux-gnueabihf-libgfortran3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/arm-linux-gnueabihf-libgfortran4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/arm-linux-gnueabihf-libgfortran5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/arm-linux-musleabihf-libgfortran3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/arm-linux-musleabihf-libgfortran4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/arm-linux-musleabihf-libgfortran5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-linux-gnu-libgfortran3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-linux-gnu-libgfortran4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-linux-gnu-libgfortran5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-linux-musl-libgfortran3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-linux-musl-libgfortran4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-linux-musl-libgfortran5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.so.0"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-w64-mingw32-libgfortran3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.dll"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [Sys.BINDIR, joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-w64-mingw32-libgfortran4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.dll"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [Sys.BINDIR, joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
6 changes: 4 additions & 2 deletions src/wrappers/i686-w64-mingw32-libgfortran5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ const libopenblas = "libopenblas.dll"
Open all libraries
"""
function __init__()
global prefix = abspath(joinpath(@__DIR__, ".."))
global artifact_dir = abspath(artifact"OpenBLAS")

# Initialize PATH and LIBPATH environment variable listings
global PATH_list, LIBPATH_list
global libopenblas_path = abspath(joinpath(artifact"OpenBLAS", libopenblas_splitpath...))
# We first need to add to LIBPATH_list the libraries provided by Julia
append!(LIBPATH_list, [Sys.BINDIR, joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)])
global libopenblas_path = normpath(joinpath(artifact_dir, libopenblas_splitpath...))

# Manually `dlopen()` this right now so that future invocations
# of `ccall` with its `SONAME` will find this path immediately.
Expand Down
Loading

0 comments on commit 5c05eba

Please sign in to comment.