Browse Source

openssl3: fix find by cmake (#7754)

* openssl3: fix find by cmake

* Update xmake.lua
Bai Miao 1 tháng trước cách đây
mục cha
commit
e6ecc2d08a
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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})
         os.vrunv("perl", configs, {envs = buildenvs})
         import("package.tools.make").build(package)
         import("package.tools.make").build(package)
         import("package.tools.make").make(package, {"install_sw"})
         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)
     end)
 
 
     on_install("linux", "macosx", "bsd", function (package)
     on_install("linux", "macosx", "bsd", function (package)
@@ -158,6 +161,9 @@ package("openssl3")
         if package:config("shared") then
         if package:config("shared") then
             os.tryrm(path.join(package:installdir("lib"), "*.a"), path.join(package:installdir("lib64"), "*.a"))
             os.tryrm(path.join(package:installdir("lib"), "*.a"), path.join(package:installdir("lib64"), "*.a"))
         end
         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)
     end)
 
 
     on_install("cross", "android", "iphoneos", "wasm", function (package)
     on_install("cross", "android", "iphoneos", "wasm", function (package)