<div class="gmail_quote">On Fri, Sep 30, 2011 at 2:30 PM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> (b) the driver will have to do something to honor that option when it<br>
> is calling out to other processes (like the linker), or be able to<br>
> adjust paths.<br>
<br>
</div>I think it's entirely reasonable to temporarily chdir() when calling those other processes.</blockquote></div><br><div>Yea, the typical pattern I've seen is:</div><div><br></div><div>compute paths -> fork -> chdir -> exec</div>