libsodium: Fix static and shared build (#4591)

Both libs were built
autoupdate-grpc-v1.65.0
Jérôme Leclercq 5 months ago committed by GitHub
parent 7626414c3d
commit 8715fcd9dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      packages/l/libsodium/xmake.lua

@ -21,7 +21,18 @@ package("libsodium")
end
if package:is_plat("linux", "macosx") then
import("package.tools.autoconf").install(package)
local configs = {}
if package:debug() then
table.insert(configs, "--enable-debug")
end
if package:config("shared") then
table.insert(configs, "--enable-static=no")
table.insert(configs, "--enable-shared=yes")
else
table.insert(configs, "--enable-static=yes")
table.insert(configs, "--enable-shared=no")
end
import("package.tools.autoconf").install(package, configs)
else
os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
import("package.tools.xmake").install(package)

Loading…
Cancel
Save