[LLVMbugs] [Bug 8860] New: command-line argument parser provides too many options when building with --enable-shared

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 26 04:28:29 PST 2010


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: unassignedbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list