Browse Source

improve libplist

ruki 4 years ago
parent
commit
53efdcefbd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/l/libplist/xmake.lua

+ 1 - 1
packages/l/libplist/xmake.lua

@@ -24,7 +24,7 @@ package("libplist")
             table.insert(configs, "--enable-shared=no")
             table.insert(configs, "--enable-shared=no")
         end
         end
         local cxflags
         local cxflags
-        if package:is_plat("linux") and not package:config("shared") then
+        if package:is_plat("linux") and package:config("pic") ~= false then
             cxflags = "-fPIC"
             cxflags = "-fPIC"
         end
         end
         import("package.tools.autoconf").install(package, configs, {cxflags = cxflags})
         import("package.tools.autoconf").install(package, configs, {cxflags = cxflags})