[libc++abi] Don't set POSITION_INDEPENDENT_CODE when building static library
authorSam Clegg <sbc@chromium.org>
Fri, 29 Mar 2019 22:08:56 +0000 (22:08 +0000)
committerSam Clegg <sbc@chromium.org>
Fri, 29 Mar 2019 22:08:56 +0000 (22:08 +0000)
commit31a991eeba4f22b9fc0bc6a6b981a600e66f09ac
treea8b25bbefb5723cd74e6d759847c6857c051966b
parent5f0c4c67bbff5374b196578486a16147cb786548
[libc++abi] Don't set POSITION_INDEPENDENT_CODE when building static library

With the current WebAssembly backend, objects built with -fPIC are not
compatible with static linking.  libc++abi was (mistakenly?) adding
-fPIC to the objects it was including in a static library.

IIUC this change should also mean the static build can be more efficient
on all platforms.

Differential Revision: https://reviews.llvm.org/D60005

llvm-svn: 357322
libcxxabi/src/CMakeLists.txt