]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: use CMAKE_POSITION_INDEPENDENT_CODE property instead of -fPIC
authorKefu Chai <kchai@redhat.com>
Wed, 29 Jun 2016 07:49:26 +0000 (15:49 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 29 Jun 2016 14:26:25 +0000 (22:26 +0800)
commit6b12a395eb6ba293d13d62dcf690272ab5605e8e
tree68c91a0ffb932f79600e394d60d7fc0d2cf9c901
parentc8fe1782a60990db51e20630883a9c9e11879573
cmake: use CMAKE_POSITION_INDEPENDENT_CODE property instead of -fPIC

use the global setting of CMAKE_POSITION_INDEPENDENT_CODE instead of
hardwiring the CMAKE_C_FLAGS with -fPIC. this helps to reduce the
overhead of symbol resolution when user is using static libraries.
see
https://cmake.org/cmake/help/v2.8.11/cmake.html#variable:CMAKE_POSITION_INDEPENDENT_CODE

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