# Embedding Julia without RTLD\_GLOBAL in dlopen?

**URL:** https://discourse.julialang.org/t/embedding-julia-without-rtld-global-in-dlopen/37655
**Category:** General Usage
**Tags:** embedding
**Created:** [April 15, 2020, 5:00pm UTC](https://discourse.julialang.org/t/embedding-julia-without-rtld-global-in-dlopen/37655 "2020-04-15T17:00:51Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![tkf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkf/32/17635_2.png) [@tkf](https://discourse.julialang.org/u/tkf)
#### Post date: [April 15, 2020, 5:18pm UTC](https://discourse.julialang.org/t/embedding-julia-without-rtld-global-in-dlopen/37655/2 "2020-04-15T17:18:32Z")

</div>

It looks like you can create a shim library that `dlopen`s your actual plugin library with `RTLD_GLOBAL`: [Different behaviours in Linux and MacOs with Julia embedded in C++ - #13 by vitreo12](https://discourse.julialang.org/t/different-behaviours-in-linux-and-macos-with-julia-embedded-in-c/18101/13)

---

_[View the full topic](https://discourse.julialang.org/t/embedding-julia-without-rtld-global-in-dlopen/37655)._
