<div dir="ltr">> <span style="font-family:arial,sans-serif;font-size:13px">I'm working on making libc++ generate code coverage data. This means that libclang_rt.profile.x86_64.a is put into the link command before '-lc' and other dependencies.</span><div style="font-family:arial,sans-serif;font-size:13px">>I suspect this change in library order causes the linker errors I see while running the tests.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I forgot to mention this is because we use -nodefaultlibs when linking libc++.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Sorry for the spam</div><div style="font-family:arial,sans-serif;font-size:13px">/Eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 9, 2014 at 11:39 PM, Eric Fiselier <span dir="ltr"><<a href="mailto:eric@efcs.ca" target="_blank">eric@efcs.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I'm working on making libc++ generate code coverage data. This means that libclang_rt.profile.x86_64.a is put into the link command before '-lc' and other dependencies.</div><div>I suspect this change in library order causes the linker errors I see while running the tests.</div><div><br></div><div>I have a couple of questions:</div><div>  - Should -ftest-coverage be passed when linking libc++?</div><div>  - Is there a way to link libclang_rt.profile.x86_64.a after the given linker flags</div><div><br></div><div><br></div><div>This file shows the ld invocation with and without -nodefaultlibs as well as the error produced when</div><div>linking tests w/ -nodefaultlibs</div><div><a href="http://pastebin.com/QWagJpsW" target="_blank">http://pastebin.com/QWagJpsW</a><br></div><div><br></div><div>Any help is appreciated</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>/Eric</div><div><br></div></font></span></div>
</blockquote></div><br></div>