[PATCH] D85626: [tools][remarks-shlib] Don't build libRemarks.so without PIC

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 20 03:39:58 PDT 2020


ro marked an inline comment as done.
ro added inline comments.


================
Comment at: llvm/tools/remarks-shlib/CMakeLists.txt:1-2
-set(LLVM_LINK_COMPONENTS
-  Remarks
-  )
+# Building shared libraries requires PIC objects.
+if(LLVM_ENABLE_PIC)
+
----------------
thegameg wrote:
> ro wrote:
> > lebedev.ri wrote:
> > > Is this the only LLVM shared library that was missing this `if(LLVM_ENABLE_PIC)` check?
> > > If not, this comment is misleading, since clearly it worked so far everywhere else.
> > No, `LLVMPolly.so` had the same issue: fixed in D85627.
> Possibly `libLTO.so` too? But maybe it doesn't get built during `check-all` on your platform. There is `LLVM_TOOL_LTO_BUILD` but from what I see it's never checked.
I **do** find `libLTO.so` in a default (i.e. PIC) build on Solaris, but it's omitted with `-DLLVM_ENABLE_PIC=Off` without doing anything special.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85626



More information about the llvm-commits mailing list