Browse Source

poco: fix symbol export macro (#8466)

star9029 1 month ago
parent
commit
ad6ab87ad7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/p/poco/xmake.lua

+ 4 - 0
packages/p/poco/xmake.lua

@@ -97,6 +97,10 @@ package("poco")
             package:add("deps", "aprutil")
             package:add("deps", "apache2")
         end
+
+        if not package:config("shared") then
+            package:add("defines", "POCO_STATIC")
+        end
     end)
 
     on_check(function (package)