diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-10-03 20:22:26 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-10-03 20:22:26 +0000 |
commit | 6a5c438e9ef71c86d1d5717519c618dcf5e8100d (patch) | |
tree | 9135e25297676a12d2acce0c740cf9b6bc983270 /cmake | |
parent | f6b13c346dcda30dc00569faaa6968f0f3541d23 (diff) | |
download | libunwind_llvm-6a5c438e9ef71c86d1d5717519c618dcf5e8100d.tar.gz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@314834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config-ix.cmake | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index e2041af..2d4da64 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -52,7 +52,6 @@ endif () # Check compiler flags check_c_compiler_flag(-funwind-tables LIBUNWIND_HAS_FUNWIND_TABLES) -check_cxx_compiler_flag(-fPIC LIBUNWIND_HAS_FPIC_FLAG) check_cxx_compiler_flag(-fno-exceptions LIBUNWIND_HAS_NO_EXCEPTIONS_FLAG) check_cxx_compiler_flag(-fno-rtti LIBUNWIND_HAS_NO_RTTI_FLAG) check_cxx_compiler_flag(-fstrict-aliasing LIBUNWIND_HAS_FSTRICT_ALIASING_FLAG) |