|
|
| Bugzilla Link |
8860 |
| Version |
trunk |
| OS |
Linux |
Extended Description
Normal build (--disable-shared):
$ llvm-bcanalyzer -help | wc -l
10
Built with --enable-shared:
$ llvm-bcanalyzer -help | wc -l
113
The problem is that every static cl::opt<...> instance in the LLVM libraries is included in the LLVM .so, whereas static linking discards those which are in .o files which are (otherwise) unused.
I'm writing an external tool which uses some bits of LLVM (including the llvm::cl library), and can't use the LLVM dynamic library for this reason.