According to http://llvm.org/PR43604, it looks like we want to provide
the guarantee that users can build their applications with -fPIC or -fPIE
when linking against libc++.a. This is only possible if we build libc++.a
with -fPIC itself, which can be achieved through CMake's
CMAKE_POSITION_INDEPENDENT_CODE knob.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I created another take on this here: https://reviews.llvm.org/D104328.
Personally, I find the solution in this patch here more elegant, since it avoids hardcoding that choice in a layer way below in libc++.