]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: should compile libzstd with -fPIC
authorKefu Chai <kchai@redhat.com>
Mon, 22 Oct 2018 05:13:11 +0000 (13:13 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 22 Oct 2018 06:40:03 +0000 (14:40 +0800)
commit669853e0188e846f762996e8340fba9d196f056d
treec8233827ed13084be55f591aaef3dc95dcae7298
parentb605210b9749be68728bf8fb9226786a88d24067
cmake: should compile libzstd with -fPIC

otherwise we will have

/usr/bin/ld: libzstd/lib/libzstd.a(error_private.c.o): relocation
R_X86_64_32S against `.rodata' can not be used when making a shared
object; recompile with -fPIC

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/compressor/zstd/CMakeLists.txt