13
0

Update weakjack, alternative macOS libjack paths

see also https://github.com/x42/weakjack/pull/13
This commit is contained in:
Robin Gareus 2021-06-02 17:42:01 +02:00
parent 6e72232636
commit bc4ef3ff3d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -110,6 +110,21 @@ static void init_weak_jack(void)
if (!lib) {
lib = lib_open("/usr/local/lib/libjack.dylib");
}
if (!lib) {
/* New Homebrew location */
lib = lib_open("/opt/homebrew/lib/libjack.dylib");
if (lib) {
fprintf(stderr, "*** WEAK-JACK: using Homebrew\n");
}
}
if (!lib) {
/* MacPorts location */
lib = lib_open("/opt/local/lib/libjack.dylib");
if (lib) {
fprintf(stderr, "*** WEAK-JACK: using MacPorts\n");
}
}
#elif (defined PLATFORM_WINDOWS)
# if defined(__x86_64__) || defined(_M_X64) || defined(__amd64__)
lib = lib_open("libjack64.dll");