Merge pull request #344 from spouliot/apple-silicon-homebrew-path
Fix loading native libraries on macOS (arm64) using homebrew installed gtk+3
This commit is contained in:
commit
451755439e
1 changed files with 3 additions and 0 deletions
|
@ -73,6 +73,9 @@ class GLibrary
|
|||
|
||||
if (ret == IntPtr.Zero) {
|
||||
ret = FuncLoader.LoadLibrary("/usr/local/lib/" + _libraryDefinitions[library][2]);
|
||||
if (ret == IntPtr.Zero) {
|
||||
ret = FuncLoader.LoadLibrary("/opt/homebrew/lib/" + _libraryDefinitions[library][2]);
|
||||
}
|
||||
}
|
||||
} else
|
||||
ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][1]);
|
||||
|
|
Loading…
Reference in a new issue