[LLVMdev] Linking to the LLVM shared library
nobled at dreamwidth.org
Sun Aug 15 16:19:01 PDT 2010
The LLVM 2.7 release notes say you can use ./configure --enable-shared
to build LLVM as a shared library (libLLVM2.7.so), and the LLVM tools
will link against that instead of including the static libraries, so I
Is there a way to configure LLVM the same way using CMake (so it can
work on Windows)?
In the other direction, is there an equivalent ./configure flag to
setting CMake's LLVM_BUILD_TOOLS to "Off", like --disable-tools?
And is there a way to get llvm-config to output --libs/--ldflags that
will make third-party programs link dynamically instead of statically?
If there isn't a way, can that be added in 2.8? It'd be useful if
you're building more than one binary against LLVM and want to avoid
unnecessary file size bloat.
More information about the llvm-dev