<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 28, 2013 at 5:58 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank" class="cremed">rafael.espindola@gmail.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="HOEnZb"><div class="h5">On 28 October 2013 20:56, Chandler Carruth <<a href="mailto:chandlerc@google.com" class="cremed">chandlerc@google.com</a>> wrote:<br>

><br>
> On Mon, Oct 28, 2013 at 5:53 PM, Rafael Espíndola<br>
> <<a href="mailto:rafael.espindola@gmail.com" class="cremed">rafael.espindola@gmail.com</a>> wrote:<br>
>><br>
>> Right now we print:<br>
>><br>
>> -dynamic-linker<br>
>> /lib/ld-linux-armhf.so.3<br>
>> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crt1.o<br>
>> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crti.o<br>
>> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtbegin.o<br>
>> -L/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2<br>
>> -L/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../..<br>
>> -L/lib<br>
>> -L/usr/lib<br>
>> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtend.o<br>
>> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crtn.o<br>
>><br>
>> The tricky part is implementing the ubuntu support (where with have<br>
>> the "..../lib/../lib line) without regressing this.<br>
><br>
><br>
> How so? Shouldn't that just be a no-op?<br>
<br>
</div></div>No. Because that is where we look first. If you try ubuntu right now<br>
(after the revert) with the 32 bit x86 support installed we will try<br>
to use the 32 bit x86 libraries when linking for arm.<br></blockquote><div><br></div><div>Wait, you're saying the sysroot isn't being applied?</div><div><br></div><div>Maybe it would help to show GCC's search paths and Clang's current (broken) search paths on the ubuntu setup you're trying to make work? I worry that I'm misunderstanding your email, and thus misunderstanding the problem.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div></div>