# Dynlinking plugin which references LLVM stubs

**URL:** <https://discuss.ocaml.org/t/dynlinking-plugin-which-references-llvm-stubs/12596>\
**Category:** Community\
**Tags:** llvm, dune\
**Created:** [July 11, 2023, 4:11pm UTC](https://discuss.ocaml.org/t/dynlinking-plugin-which-references-llvm-stubs/12596 "2023-07-11T16:11:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![alan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@alan](https://discuss.ocaml.org/u/alan)\
**Post date:** [July 25, 2023, 2:34pm UTC](https://discuss.ocaml.org/t/dynlinking-plugin-which-references-llvm-stubs/12596/3 "2023-07-25T14:34:42Z")

</div>

I don’t know what is going on and have never mucked deep into plugins, but I do know that Dune is missing a bunch of features that may [impede](https://discuss.ocaml.org/t/improving-interoperability-between-ocaml-ocamlfind-and-dune/4479/16) interaction with findlib-based libraries. For example, the versions of LLVM on opam make use of a [“predicate”](https://github.com/ocaml/opam-repository/blob/master/packages/llvm/llvm.14.0.6/files/META.patch) to enable static linking to LLVM. OCamlbuild permits users to access this option, but [Dune does not](https://discuss.ocaml.org/t/using-output-of-ocamlfind-params-only-show-in-a-dune-build/4187/8). This is a concern that @kit-ty-kate has mentioned while she has been trying to make the LLVM bindings build with Dune.

However, you don’t seem to need the llvm.static predicate (you would probably _not_ want this flag), so I’m not sure what the issue is for your case specifically.

---

_[View the full topic](https://discuss.ocaml.org/t/dynlinking-plugin-which-references-llvm-stubs/12596)._
