Browse Source

improve libffi

ruki 4 years ago
parent
commit
1b395c8c0c
1 changed files with 7 additions and 0 deletions
  1. 7 0
      packages/l/libffi/xmake.lua

+ 7 - 0
packages/l/libffi/xmake.lua

@@ -27,6 +27,13 @@ package("libffi")
             table.insert(configs, "--with-pic")
             table.insert(configs, "--with-pic")
         end
         end
         import("package.tools.autoconf").install(package, configs)
         import("package.tools.autoconf").install(package, configs)
+        if package:is_plat("linux") and package:is_arch("x86_64") then
+            local lib64 = path.join(package:installdir(), "lib64")
+            if os.isdir(lib64) then
+                package:add("links", "ffi")
+                package:add("linkdirs", "lib64")
+            end
+        end
     end)
     end)
 
 
     on_test(function (package)
     on_test(function (package)