improve openssl (#1356)

pull/1359/head
ruki 3 years ago committed by GitHub
parent 731eb279cc
commit 2ee023a6bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      packages/o/openssl/xmake.lua

@ -77,7 +77,8 @@ package("openssl")
os.mkdir("fuzz")
end
os.vrunv("perl", configs, {envs = buildenvs})
import("package.tools.make").install(package)
import("package.tools.make").build(package)
import("package.tools.make").make(package, {"install_sw"})
end)
on_install("linux", "macosx", function (package)
@ -91,8 +92,8 @@ package("openssl")
end
os.vrunv("./config", configs, {envs = buildenvs})
local makeconfigs = {CFLAGS = buildenvs.CFLAGS, ASFLAGS = buildenvs.ASFLAGS}
import("package.tools.make").install(package, makeconfigs)
import("package.tools.make").build(package, makeconfigs)
import("package.tools.make").make(package, {"install_sw"})
if package:config("shared") then
os.tryrm(path.join(package:installdir("lib"), "*.a"))
end
@ -129,7 +130,8 @@ package("openssl")
local buildenvs = import("package.tools.autoconf").buildenvs(package)
os.vrunv("./Configure", configs, {envs = buildenvs})
local makeconfigs = {CFLAGS = buildenvs.CFLAGS, ASFLAGS = buildenvs.ASFLAGS}
import("package.tools.make").install(package, makeconfigs)
import("package.tools.make").build(package, makeconfigs)
import("package.tools.make").make(package, {"install_sw"})
end)
on_test(function (package)

Loading…
Cancel
Save