瀏覽代碼

gfortran: add more path on macos (#3384)

* add more path on macos

* Update xmake.lua

---------

Co-authored-by: ruki <[email protected]>
_ivaquero_ 1 年之前
父節點
當前提交
70c7ac2369
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/g/gfortran/xmake.lua

+ 3 - 0
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