[PATCH] D60005: [libc++abi] Don't set POSITION_INDEPENDENT_CODE when building static library

Jiang Yi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 30 12:10:25 PDT 2019


jiangyi added a comment.

After this patch, libcxx failed to compile when -DLLVM_ENABLE_PIC=OFF and -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON.

Maybe we should add an option to set PIC of libcxxabi. Something like

option(LIBCXXABI_ENABLE_PIC "Build Position-Independent Code, which is required if LIBCXX_ENABLE_STATIC_ABI_LIBRARY is set in libcxx" ON)

and add some checks in libcxx CMakeLists.txt to fail in cmake configure step if condition does not meet.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60005/new/

https://reviews.llvm.org/D60005





More information about the llvm-commits mailing list