[LLVMdev] Shared library support of llvm

Peng Cheng gm4cheng at gmail.com
Wed May 8 08:30:07 PDT 2013


According to http://llvm.org/docs/CMake.html, "Shared libraries are not
supported on Windows and not recommended in the other OSes".

The problem is that static libraries have some limitations, especially when
linked into multiple shared libraries, the global data of llvm could have
multiple copies leading to undefined behaviors.  This has caused much pains
during my usage of llvm.

My questions are:

1. What are the reasons to not support shared libraries on Windows and not
recommended in other OSes?

2. Are there any plans to support shared libraries?

Thanks very much for any information!

Best,
-Peng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130508/51fbde66/attachment.html>


More information about the llvm-dev mailing list