<div dir="auto">Sorry for what’s frankly spam now I wasn’t finished explain.</div><div dir="auto"><br></div><div dir="auto">> <span style="word-spacing:1px;color:rgb(49,49,49)">So that leaves the installed case.  The simplest approach would be to</span></div><span style="word-spacing:1px;border-color:rgb(49,49,49);color:rgb(49,49,49)">change the install-name to @loader_path/module.so and skip rpaths</span><br style="color:rgb(212,212,213);font-family:-apple-system,HelveticaNeue;word-spacing:1px"><span style="word-spacing:1px;border-color:rgb(49,49,49);color:rgb(49,49,49)">entirely.  Is there a reason not to do that?</span><div dir="auto"><font style="border-color:rgb(49,49,49);color:rgb(49,49,49)"><span style="word-spacing:1px"><br></span></font></div><div dir="auto" style="background-color:rgba(0,0,0,0)!important;border-color:rgb(255,255,255)!important"><font style="background-color:rgba(0,0,0,0)!important;border-color:rgb(212,212,213)!important"><span style="background-color:rgba(0,0,0,0)!important;border-color:rgb(212,212,213)!important"><font style="border-color:rgb(0,0,0);color:rgb(0,0,0)">This should be fine going off how macOS usually handles loading libraries.</font><br></span></font><div dir="auto"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 20, 2021 at 11:01 AM Huw Davies <<a href="mailto:huw@codeweavers.com">huw@codeweavers.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">On Fri, Aug 20, 2021 at 10:13:01AM -0400, Dean Greer wrote:<br>
> This makes sense now thank you, I’d still rather see the -rpath behind<br>
> something like UNIX_LDFLAGS then it could be used for other -rpath<br>
> configuration for the Unix.so libraries <br>
> <br>
> For the build directory runs wouldn’t it be better to alter the wine loader<br>
> wrapper script.<br>
<br>
Right, good idea.  Adding $topdir/dlls/ntdll to DYLD_LIBRARY_PATH in the<br>
wine script will cover the build directory case.<br>
<br>
So that leaves the installed case.  The simplest approach would be to<br>
change the install-name to @loader_path/module.so and skip rpaths<br>
entirely.  Is there a reason not to do that?<br>
<br>
Huw.<br>
</blockquote></div></div></div>