[LLVMdev] Linking to the LLVM shared library
Óscar Fuentes
ofv at wanadoo.es
Sun Aug 15 16:32:23 PDT 2010
nobled <nobled at dreamwidth.org> writes:
> 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
> was wondering:
>
> Is there a way to configure LLVM the same way using CMake (so it can
> work on Windows)?
There is no way right now. It could be easily implemented for MinGW, but
not for MSVC. The binutils included with MinGW do not require
__declspec(dllexport/dllimport) for exporting/importing symbols on dlls.
[snip]
More information about the llvm-dev
mailing list