소스 검색

Make snappy position independant (#293)

* Make snappy position independant

* Update xmake.lua
yamashi 4 년 전
부모
커밋
2bba4a09b3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/s/snappy/xmake.lua

+ 1 - 0
packages/s/snappy/xmake.lua

@@ -18,6 +18,7 @@ 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")
         import("package.tools.cmake").install(package, configs)
     end)