* module/system/foreign-library.scm (system-library-extensions): fix
darwin host detection. darwin host types have "-darwin" but not
"-darwin-".
---
module/system/foreign-library.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/module/system/foreign-library.scm
b/module/sys
Without this change dynamic libraries in macOS are not loaded
properly. This has happened since 3.0.6.
scheme@(guile-user)> %host-type
$1 = "x86_64-apple-darwin20.5.0"
scheme@(guile-user)> (use-modules (git))
While compiling expression:
In procedure git_libgit2_i
And there are also more errors, for example in guile-gcrypt:
dyld: lazy symbol binding failed: Symbol not found: __gcry_check_version
Referenced from: /usr/local/lib/libgcrypt.dylib
Expected in: flat namespace
dyld: Symbol not found: __gcry_check_version
Referenced from: /usr/local/lib/libg