Browse Source

orc: update to 2.1.1, fix shared build (#6836)

* Orc 2.1.1

* Allow shared build

---------

Co-authored-by: Saikari <[email protected]>
Altina Orion 4 months ago
parent
commit
a23ef7215d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/o/orc/xmake.lua

+ 2 - 0
packages/o/orc/xmake.lua

@@ -6,6 +6,7 @@ package("orc")
     add_urls("https://github.com/apache/orc/archive/refs/tags/$(version).tar.gz",
     add_urls("https://github.com/apache/orc/archive/refs/tags/$(version).tar.gz",
              "https://github.com/apache/orc.git")
              "https://github.com/apache/orc.git")
 
 
+    add_versions("v2.1.1", "1f8eef537814fdcd003de13e49c6edb35427b45eb40bafd3355f775d99a0ff99")
     add_versions("v2.1.0", "c7f1b36e28a468fe7e3f92e581fb499825b7c342b7952c593f004defb50777d0")
     add_versions("v2.1.0", "c7f1b36e28a468fe7e3f92e581fb499825b7c342b7952c593f004defb50777d0")
     add_versions("v2.0.3", "7920c7c7644f31c5519befa18f8f949cdf53420603b621bd85d214b516e25ff3")
     add_versions("v2.0.3", "7920c7c7644f31c5519befa18f8f949cdf53420603b621bd85d214b516e25ff3")
 
 
@@ -33,6 +34,7 @@ package("orc")
     end)
     end)
 
 
     on_install("windows", "linux", "macosx", "bsd", function (package)
     on_install("windows", "linux", "macosx", "bsd", function (package)
+        io.replace("c++/src/CMakeLists.txt", [[(orc STATIC ${SOURCE_FILES})]], [[(orc ${SOURCE_FILES})]], {plain = true})
         local configs = {
         local configs = {
             "-DBUILD_JAVA=OFF",
             "-DBUILD_JAVA=OFF",
             "-DBUILD_CPP_TESTS=OFF",
             "-DBUILD_CPP_TESTS=OFF",