<div dir="ltr">I am primarily interested in running an analysis pass on the entire code, and I can't quite do it separately for each library and then combine the results which is why I need the whole program. For the moment, it isn't strictly necessary to produce the exact same output at the end of the process as you would produce with a regular compiler. <div><br></div><div>Tarun</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 13, 2016 at 1:00 PM, Mehdi Amini <span dir="ltr"><<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@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 style="word-wrap:break-word"><span class=""><br><div><blockquote type="cite"><div>On May 13, 2016, at 10:56 AM, Tarun Prabhu <<a href="mailto:tarunprabhu@gmail.com" target="_blank">tarunprabhu@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>Any reason you're not using static archives? It seems to correspond more to what you're trying to do (i.e. LTO all the code in a single binary).</div></div></div></blockquote><div><br></div><div>I just want to avoid modifying the application's build system. If there's no other way, I could go in and change the build scripts, but I'd like to avoid doing that as much as possible. </div></div></div></div></div></blockquote><div><br></div></div></span>If you're doing LTO with shared library, usually you're still producing shared library that are not bitcode (i.e. the LTO is performed separately within the boundary of each library).<div><br></div><div>Other people may have different experience, CC Rafael maybe?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- </div><div>Mehdi</div><div><br></div></font></span></div></blockquote></div><br></div>