Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xq114 committed Sep 20, 2024
1 parent 7c7ff33 commit 57c8e19
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/m/mumps/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ package("mumps")

os.cp("Make.inc/Makefile.inc.generic.SEQ", "Makefile.inc")
io.replace("Makefile.inc", "ORDERINGSF = -Dpord", "ORDERINGSF = -Dscotch -Dpord", {plain = true})
io.replace("Makefile.inc", "LAPACK = -llapack", "LAPACK = -lopenblas", {plain = true})
io.replace("Makefile.inc", "LIBBLAS = -lblas", "LIBBLAS = -lopenblas", {plain = true})
if package:dep("openblas"):config("openmp") then
io.replace("Makefile.inc", "LAPACK = -llapack", "LAPACK = -fopenmp -lopenblas", {plain = true})
io.replace("Makefile.inc", "LIBBLAS = -lblas", "LIBBLAS = -fopenmp -lopenblas", {plain = true})
else
io.replace("Makefile.inc", "LAPACK = -llapack", "LAPACK = -lopenblas", {plain = true})
io.replace("Makefile.inc", "LIBBLAS = -lblas", "LIBBLAS = -lopenblas", {plain = true})
end
io.replace("Makefile.inc", "f90", fortranc.program, {plain = true})
io.replace("Makefile.inc", "OPTF = -O", "OPTF = -O -std=legacy", {plain = true})
local envs = import("package.tools.make").buildenvs(package)
Expand Down

0 comments on commit 57c8e19

Please sign in to comment.