summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-03-08 22:24:12 +0000
committerLouis Dionne <ldionne@apple.com>2019-03-08 22:24:12 +0000
commit2714d5890196e7662403751cbf2dde6cb79b255b (patch)
tree6cfe18a68adea8e9e675c870b352adf4999ab29e
parent7a05d1c1f116db31b2507bf5a51c5f927fb83a88 (diff)
downloadbcm5719-llvm-2714d5890196e7662403751cbf2dde6cb79b255b.tar.gz
bcm5719-llvm-2714d5890196e7662403751cbf2dde6cb79b255b.zip
[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
-rw-r--r--libcxx/lib/CMakeLists.txt4
1 files changed, 0 insertions, 4 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt
index 22a9bf381c8..1b10bc68ca0 100644
--- a/libcxx/lib/CMakeLists.txt
+++ b/libcxx/lib/CMakeLists.txt
@@ -105,10 +105,6 @@ if (LIBCXXABI_USE_LLVM_UNWINDER)
endif()
# Setup flags.
-if (NOT WIN32)
- add_flags_if_supported(-fPIC)
-endif()
-
add_link_flags_if_supported(-nodefaultlibs)
if (LIBCXX_TARGETING_MSVC)
OpenPOWER on IntegriCloud