[LLVMbugs] [Bug 5806] New: it should be possible to build LLVM without dlopen() support

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Dec 16 05:49:07 PST 2009


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

           Summary: it should be possible to build LLVM without dlopen()
                    support
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Currently when LLVM is built on *nix, it requires dlopen().
However there may be cases when the dlopen() support is completely unused in a
program that uses LLVM (i.e. DisableSymbolSearching, no plugins, etc.).

In that case dlopen() adds additional complications (need to pass -ldl on
Linux, nothing and FreeBSD, and who knows what on HP-UX, etc.). Since dlopen is
not needed, that seems like unnecessary complication.

Also EngineBuilder::create returns NULL if it can't dlopen self. However the
JIT works just fine w/o dlopen.

I suggest LLVM to have a ./configure --disable-dlopen to disable dlopen
support, in which case EngineBuilder should still work, and in
DynamicLibrary.cpp it should return NULL/error when trying to dlopen something.


-- 
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