[libc++] Do not force building with -fPIC
authorLouis Dionne <ldionne@apple.com>
Fri, 8 Mar 2019 22:24:12 +0000 (22:24 +0000)
committerLouis Dionne <ldionne@apple.com>
Fri, 8 Mar 2019 22:24:12 +0000 (22:24 +0000)
commit2714d5890196e7662403751cbf2dde6cb79b255b
tree6cfe18a68adea8e9e675c870b352adf4999ab29e
parent7a05d1c1f116db31b2507bf5a51c5f927fb83a88
[libc++] Do not force building with -fPIC

Summary:
Whether we build with -fPIC should be specified by the
CMAKE_POSITION_INDEPENDENT_CODE option at configure time.
Note that this patch doesn't change the behavior when building
by default, since -fPIC is used for shared libraries by default.

Reviewers: EricWF

Subscribers: mgorny, christof, jkorous, dexonsmith, libcxx-commits

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

llvm-svn: 355746
libcxx/lib/CMakeLists.txt