# Embedding julia 1.6.0

**URL:** <https://discourse.julialang.org/t/embedding-julia-1-6-0/58898>\
**Category:** General Usage\
**Created:** [April 9, 2021, 2:00am UTC](https://discourse.julialang.org/t/embedding-julia-1-6-0/58898 "2021-04-09T02:00:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maarten\_van\_damme](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maarten_van_damme/32/6946_2.png) [@maarten\_van\_damme](https://discourse.julialang.org/u/maarten_van_damme)\
**Post date:** [April 9, 2021, 2:00am UTC](https://discourse.julialang.org/t/embedding-julia-1-6-0/58898/1 "2021-04-09T02:00:42Z")

</div>

I’m trying to solve [https://github.com/jebej/Mex.jl/issues/6](https://github.com/jebej/Mex.jl/issues/6) . To embed julia in matlab, it appears you need to turn of signal handling. In 1.6, some things got separated out into libjulia-internal, of which I can find no documentation. The name suggests that this is done on purpose, and one shouldn’t really link into it.

What is the proper way to turn off signal handling when embedding julia now?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [April 16, 2021, 3:42pm UTC](https://discourse.julialang.org/t/embedding-julia-1-6-0/58898/2 "2021-04-16T15:42:31Z")

</div>

> [@maarten\_van\_damme](#):
>
> I’m trying to solve [Fix compilation on 1.6 · Issue #6 · jebej/Mex.jl · GitHub](https://github.com/jebej/Mex.jl/issues/6) . To embed julia in matlab, it appears you need to turn of signal handling. In 1.6, some things got separated out into libjulia-internal, of which I can find no documentation. The name suggests that this is done on purpose, and one shouldn’t really link into it.

See [https://github.com/JuliaLang/julia/pull/38160](https://github.com/JuliaLang/julia/pull/38160) by @staticfloat

---

<div class="post-metadata">

**Author:** ![maarten\_van\_damme](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maarten_van_damme/32/6946_2.png) [@maarten\_van\_damme](https://discourse.julialang.org/u/maarten_van_damme)\
**Post date:** [April 18, 2021, 11:06am UTC](https://discourse.julialang.org/t/embedding-julia-1-6-0/58898/3 "2021-04-18T11:06:41Z")

</div>

I don’t understand this. According to the first sentence

> We first rename `libjulia` to `libjulia-internal` , and `libjulialoader`  
> to `libjulia` so as to reduce confusion from the outside; `libjulia` is  
> the entrypoint for all usecases, and `libjulia-internal` just so happens  
> to be the chunk that contains all the actual code and linkage to other  
> libraries.

which implies that I should just be able to link to libjulia, and that should be enough for my usecase. Using only libjulia then, how can I access jl\_options, and turn off signal handling?
