gfortran: add more path on macos (#3384)

* add more path on macos

* Update xmake.lua

---------

Co-authored-by: ruki <waruqi@gmail.com>
pull/3393/head
_ivaquero_ 1 year ago committed by GitHub
parent e41c2c411b
commit 70c7ac2369
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      packages/g/gfortran/xmake.lua

@ -31,6 +31,9 @@ package("gfortran")
table.insert(paths, path.join("/usr/lib", target))
table.insert(paths, path.join("/usr/lib/gcc", target, vmajor))
table.insert(paths, path.join(installdir, "lib", target, vmajor))
if package:is_plat("macosx") then
table.insert(paths, path.join("/opt/homebrew/Cellar/gcc", version, "/lib/gcc", vmajor))
end
end
local linkinfo = find_library("gfortran", paths)
if linkinfo then

Loading…
Cancel
Save