While it is theoretically possible to build it as a shared library, there is no plan on our side to work on this at the moment (that I know of).We are aiming to integrate MLIR within the LLVM repository though, and at this point the community would be able to add support for such kind of use cases.