Преглед изворни кода

openssl3: fix find by cmake (#7754)

* openssl3: fix find by cmake

* Update xmake.lua
Bai Miao пре 1 месец
родитељ
комит
e6ecc2d08a
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      packages/o/openssl3/xmake.lua

+ 6 - 0
packages/o/openssl3/xmake.lua

@@ -135,6 +135,9 @@ package("openssl3")
         os.vrunv("perl", configs, {envs = buildenvs})
         import("package.tools.make").build(package)
         import("package.tools.make").make(package, {"install_sw"})
+        if os.isdir(package:installdir("lib64")) and package:is_arch("x86_64") then
+            os.trycp(path.join(package:installdir("lib64"), "*"), package:installdir("lib"))
+        end
     end)
 
     on_install("linux", "macosx", "bsd", function (package)
@@ -158,6 +161,9 @@ package("openssl3")
         if package:config("shared") then
             os.tryrm(path.join(package:installdir("lib"), "*.a"), path.join(package:installdir("lib64"), "*.a"))
         end
+        if package:is_plat("linux") and os.isdir(package:installdir("lib64")) and package:is_arch("x86_64") then
+            os.trycp(path.join(package:installdir("lib64"), "*"), package:installdir("lib"))
+        end
     end)
 
     on_install("cross", "android", "iphoneos", "wasm", function (package)