<div dir="ltr">Hi,<div><br></div><div>Would be nice to get this reviewed. Its gets tiring to put -lc++abi whenever I need to do -stdlib=libc++</div><div><br></div><div>Thanks!</div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Apr 9, 2014 at 3:52 PM, Sebastian Redl <span dir="ltr"><<a href="mailto:sebastian.redl@getdesigned.at" target="_blank">sebastian.redl@getdesigned.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Gentle ping on this. Haven't heard anything except that Marshall likes the documentation.<br>
<div class="HOEnZb"><div class="h5"><br>
On Apr 2, 2014, at 10:54, Dmitri Gribenko wrote:<br>
<br>
> + Sylvestre Ledru<br>
><br>
> On Tue, Apr 1, 2014 at 6:37 PM, Sebastian Redl<br>
> <<a href="mailto:sebastian.redl@getdesigned.at">sebastian.redl@getdesigned.at</a>> wrote:<br>
>> Following the recent inquiry and David Chisnall's advice, I have created<br>
>> a patch that makes libc++ work a lot smoother on Linux. It allows a<br>
>> plain "clang++ -stdlib=libc++" command line to work no matter what ABI<br>
>> library is used, and fixes the linking errors I encountered.<br>
>><br>
>> However, I have absolutely no idea what it does on other platforms.<br>
>><br>
>> Log Message:<br>
>><br>
>> Sort out common Linux linking issues.<br>
>><br>
>> Using libc++ on Linux was problematic because using libsupc++ didn't<br>
>> pull in<br>
>> all necessary symbols, whereas linking against a dynamic ABI library<br>
>> required<br>
>> the user to explicitly link against the ABI library.<br>
>><br>
>> This patch adds a new property, LIBCXX_CXX_ABI_LINK, that can be set<br>
>> to dynamic<br>
>> (the default) or static. In dynamic mode, it links against the<br>
>> dynamic library,<br>
>> and substitutes its unversioned .so file with a linker script that links<br>
>> against both libc++ and the ABI library. In static mode, it uses<br>
>> --whole-archive<br>
>> to force inclusion of the entire ABI library into the libc++.so.<br>
>><br>
>> It also automatically uses libstdc++ for dynamic mode and libsupc++<br>
>> for static<br>
>> mode if either was selected; the two ABI names are now synonyms.<br>
>><br>
>> _______________________________________________<br>
>> cfe-commits mailing list<br>
>> <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div></div>