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

Zamknięty
aconchillo chce scalić 1 commity/ów z aconchillo/config-scm-in-guile-3 do guile-zstd/master
1 zmienionych plików z 4 dodań i 1 usunięć
  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"))))