http://llvm.org/bugs/show_bug.cgi?id=8860

           Summary: command-line argument parser provides too many options
                    when building with --enable-shared
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to