<div dir="auto">That’s strange as this should work maybe only dylibs do this correctly.. this is Apple.</div><div dir="auto"><br></div><div dir="auto">Could you instead implement adding this in the manner I explain above instead so I can be used in a more general way?, aka UNIX_LDFLAGS that by default add this needed -rpath,<span style="color:rgb(0,0,0)">@loader_path/ but also allows adding additional flags as needed.</span></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 20, 2021 at 11:40 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 11:17:00AM -0400, Dean Greer wrote:<br>
> iPhone correcting non typos sign…<br>
> <br>
> On macOS by default libraries should check within there own directory then<br>
> checkin other default paths, when additional paths are added those will be<br>
> checked before standard locations like /usr/local/lib and /usr/lib etc<br>
<br>
I'm not sure this is correct, we definitely need the @loader_path/ prefix:<br>
setting LC_LOAD_DYLIB simply to ntdll.so results in the library failing<br>
to load.<br>
<br>
Huw.<br>
</blockquote></div></div>