fix openssl (#2098)

pull/2102/head
Bai Miao 2 years ago committed by GitHub
parent 2a40e4b0e5
commit 82395c95e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/o/openssl/xmake.lua

@ -109,8 +109,7 @@ package("openssl")
table.insert(configs, "--debug")
end
os.vrunv("./config", configs, {envs = buildenvs})
local makeconfigs = {CFLAGS = buildenvs.CFLAGS, ASFLAGS = buildenvs.ASFLAGS}
import("package.tools.make").build(package, makeconfigs)
import("package.tools.make").build(package)
import("package.tools.make").make(package, {"install_sw"})
if package:config("shared") then
os.tryrm(path.join(package:installdir("lib"), "*.a"))
@ -147,8 +146,7 @@ package("openssl")
"--prefix=" .. package:installdir()}
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").build(package, makeconfigs)
import("package.tools.make").build(package)
import("package.tools.make").make(package, {"install_sw"})
end)

Loading…
Cancel
Save