improve pic for snappy

pull/294/head
ruki 4 years ago
parent 2bba4a09b3
commit 11354cac02
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 4
      packages/s/snappy/xmake.lua

@ -18,7 +18,9 @@ package("snappy")
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DSNAPPY_REQUIRE_AVX=" .. (package:config("avx") and "ON" or "OFF"))
table.insert(configs, "-DSNAPPY_REQUIRE_AVX2=" .. (package:config("avx2") and "ON" or "OFF"))
table.insert(configs, "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
if package:config("pic") ~= false then
table.insert(configs, "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
end
import("package.tools.cmake").install(package, configs)
end)

Loading…
Cancel
Save