improve libusb

pull/296/head
ruki 4 years ago
parent 8589bc45ff
commit d548ec578c
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 7
      packages/l/libusb/xmake.lua

@ -52,11 +52,8 @@ package("libusb")
on_install("macosx", "linux", function (package) on_install("macosx", "linux", function (package)
local configs = {} local configs = {}
if package:config("shared") then table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
table.insert(configs, "--enable-shared=yes") table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
else
table.insert(configs, "--enable-shared=no")
end
if package:config("pic") ~= false then if package:config("pic") ~= false then
table.insert(configs, "--with-pic") table.insert(configs, "--with-pic")
end end

Loading…
Cancel
Save