Bug#629819: libc6-dev: moving crt1.o crti.o etc. to /usr/lib/<triplet> breaks external multiarch unaware applications
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.
Reply to: