<div dir="ltr"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
Without taking a closer look, I think there is only one other file that is<br>
shared between darwintrace and pextlib. Unfortunately, there is no good solution<br>
to this in the current structure. What it currently does is to copy the *.c file<br>
around during compilation, but I think this is a really horrible workaround. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
I think the better option would be to have a new subdirectory for a library with<br>
the shared code that is then linked (statically) into both darwintrace and pextlib.<br></blockquote><div><br></div><div>Yes, doing that with a static library was the final solution.</div><div><br></div><div>Meanwhile, I tried many ways to somehow get it working using a shared library, maybe because with shared lib things were much clean and compact.</div><div>But the issue was darwintrace code would intercept sys calls in our shared library as well which would make things even more complicated and slower.</div><div><br></div><div>Thanks,</div><div>Mihir</div></div></div>