Bug#629819: libc6-dev: moving crt1.o crti.o etc. to /usr/lib/<triplet> breaks external multiarch unaware applications
On Thu, Jul 21, 2011 at 11:27:41AM -0500, Jonathan Nieder wrote:
> Hi,
>
> Aurelien Jarno wrote:
>
> > Do we really need -B on /lib/$arch ?
>
> Good point. It would be better to leave that out, because simpler.
> I included it because it was in the default search path for gcc-4.6.
>
> > This directory should not be used
> > for linking, only at runtime. Also reading the documentation, it seems
> > -B also does the job for the include files, so maybe we also don't need
> > -I.
>
> Testing with gcc-4.2 reveals that you're right, though I'm not sure I
> understand why. After dealing with libgcc_s.so, using
>
> gcc-4.2 -B/usr/lib/$arch
>
> to compile a C file that uses <ffi.h> works fine.
Thanks a lot for the tests, I have just done the change in the SVN.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
Reply to: