Commit 782f6a8c6df26c0689d747308a03e6333f0e00c0

Thomas de Grivel 2023-03-06T17:51:13

libffi

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/lib/rbpkg/repos/libffi.rb b/lib/rbpkg/repos/libffi.rb
index a1013c4..69fd7e4 100644
--- a/lib/rbpkg/repos/libffi.rb
+++ b/lib/rbpkg/repos/libffi.rb
@@ -9,7 +9,11 @@ class Rbpkg::Repos::Libffi < Rbpkg::Repo
   end
 
   def configure_env
-    "MAKE=gmake"
+    if system("which gmake >/dev/null 2>&1")
+      "MAKE=gmake"
+    else
+      super
+    end
   end
 
   def dir