#1 config.scm.in: no need to distinguish guile 3

Closed
aconchillo wants to merge 1 commits from aconchillo/config-scm-in-guile-3 into guile-zstd/master
1 changed files with 4 additions and 1 deletions
  1. 4 1
      zstd/config.scm.in

+ 4 - 1
zstd/config.scm.in

@@ -23,4 +23,7 @@
   ;; 'dynamic-link' in Guile >= 3.0.2 first looks up file names literally
   ;; (hence ".so.1"), which is not the case with older versions of Guile.
   (cond-expand ((not guile-3) "@ZSTD_LIBDIR@/libzstd")
-               (else          "@ZSTD_LIBDIR@/libzstd.so.1")))
+               (else
+                (if (string-contains %host-type "darwin")
+                    "@ZSTD_LIBDIR@/libzstd.1.dylib"
+                    "@ZSTD_LIBDIR@/libzstd.so.1"))))