<p dir="auto">I'm in the process of trying to get <code class="notranslate">jl_init</code> to work without having to provide an argument for the general embedding case.</p>
<p dir="auto">My current patch works on windows because <code class="notranslate">libjulia.dll</code> (whose path I'm using to set julia_home) lives in the bin directory there, but breaks on *nix because there it lives in a <code class="notranslate">lib</code> directory.</p>
<p dir="auto">Of course, it's easy enough to patch the <code class="notranslate">lib</code> path to get the <code class="notranslate">bin</code> path, but it begs the question as to whether <code class="notranslate">julia_home</code> should just point to a level higher.</p>
<p dir="auto">One fact in favor of redefining <code class="notranslate">julia_home</code> to point a level higher: the majority of references to it begin by appending "..".</p>
<p dir="auto">It would be great if there are methods to get <code class="notranslate">CFLAGS</code> and <code class="notranslate">LDFLAGS</code> to link against <code class="notranslate">libjulia</code>. In R, there are<br>
<code class="notranslate">R CMD config</code> to get <code class="notranslate">CPPFLAGS</code> and <code class="notranslate">LDFLAGS</code>. So far, I can only find <code class="notranslate">JULIA_HOME</code>.</p>