build: use POSITION_INDEPENDENT_CODE instead of -fPIC
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 3 Oct 2017 20:22:26 +0000 (20:22 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 3 Oct 2017 20:22:26 +0000 (20:22 +0000)
commit5b93ea3b9fbe5896795662245997c62fc5578a3d
tree6d814a50306ccd32c099ba23ef024195bb730947
parent502ec49793faad5587f8c855a5f8914837594987
build: use POSITION_INDEPENDENT_CODE instead of -fPIC

Rather than hardcode the flag and check if the compiler supports it, use
the CMake property to get the right flag spelling for the compiler.
This makes it generally more portable.

llvm-svn: 314834
libunwind/cmake/config-ix.cmake
libunwind/src/CMakeLists.txt