Skip to content

Commit

Permalink
Fix codesigning issue on x86_64-apple-darwin (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored May 14, 2024
1 parent 2a248ce commit 310fb20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/wrappers/x86_64-apple-darwin.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ JLLWrappers.@declare_executable_product(grbgetkey)

function __init__()
JLLWrappers.@generate_init_header()
# This is needed to work-around a permission issue on some intel macs.
# See Gurobi.jl#545 for details.
libgurobi_path = joinpath(artifact_dir, "lib", "libgurobi110.dylib")
run(`codesign --remove-signature $libgurobi_path`)
# Back to the standard header
JLLWrappers.@init_library_product(
libgurobi,
"lib/libgurobi110.dylib",
RTLD_LAZY | RTLD_DEEPBIND,
)
JLLWrappers.@init_executable_product(gurobi_cl, "bin/gurobi_cl")
JLLWrappers.@init_executable_product(grbgetkey, "bin/grbgetkey")
# The standard license supports only Python installs. Remove it.
gurobi_lic = joinpath(artifact_dir, "lib", "gurobi.lic")
if isfile(gurobi_lic)
rm(gurobi_lic; force = true)
Expand Down

0 comments on commit 310fb20

Please sign in to comment.