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:
lytico 2022-04-17 23:53:23 +02:00 committed by GitHub
commit 451755439e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,6 +73,9 @@ class GLibrary
if (ret == IntPtr.Zero) { if (ret == IntPtr.Zero) {
ret = FuncLoader.LoadLibrary("/usr/local/lib/" + _libraryDefinitions[library][2]); ret = FuncLoader.LoadLibrary("/usr/local/lib/" + _libraryDefinitions[library][2]);
if (ret == IntPtr.Zero) {
ret = FuncLoader.LoadLibrary("/opt/homebrew/lib/" + _libraryDefinitions[library][2]);
}
} }
} else } else
ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][1]); ret = FuncLoader.LoadLibrary(_libraryDefinitions[library][1]);