improve libusb

pull/1643/head
ruki 2 years ago
parent c2e44a45a5
commit aeb2768c5b
  1. 3
      packages/l/libusb/xmake.lua

@ -88,6 +88,9 @@ package("libusb")
local configs = {}
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
if package:config("pic") ~= false then
table.insert(configs, "--with-pic")
end
local cflags, ldflags
if package:is_plat("linux") then
cflags = "-I" .. package:dep("eudev"):installdir("include")

Loading…
Cancel
Save