Matthias Klose <[EMAIL PROTECTED]> writes: > Goswin von Brederlow writes: >> Matthias Klose <[EMAIL PROTECTED]> writes: >> >> > The patch looks incomplete. It doesn't look into the libdir for the >> > non-default architecture. assuming that we drop /usr/lib32 at some >> > point, the problem fixed in #369052 would show up again. Unsure which >> > LIBDIR's we want to be searched for binutils-multiarch's ld. >> > >> > Matthias >> >> The patch in 369052 tells ld to look at lib32 as emulation dir for >> lib when doing elf_i386 code so both lib and lib32 are searched. It >> does not mean lib32 is included for elf_x86_64, right? > > no, but it doesn't look into /usr/lib/i486-linux-gnu and > /usr/lib/x86_64-linux-gnu at all, or do I miss something?
Yeah, I noticed that now too after I moved libc6 into the i486-linux-gnu dir here. I think the best would be if binutils had knowledge what specific dir to look into for each target ABI. But how for example would you differenciate between i486-linux-gnu and i486-linux-uclibc? Both would be elf_i386 target. Doesn't look like the multiarch dir can be hardcoded at all. Should binutils follow all the /lib/ldconfig/* links or all [/usr]/lib/*-*-*/ or [/usr]/lib/arch-os-*? The first seems more configurable to the actual system specifics. I don't think any compile time setting would suffice. Someone previously said ld would follow /etc/ld.so.conf entires but that doesn't seem to be the case, at least not for gcc usage: [EMAIL PROTECTED]:~$ cat /etc/ld.so.conf /usr/X11R6/lib /usr/lib/i486-linux-gnu [EMAIL PROTECTED]:~$ gcc -m32 -O2 -W -Wall -o foo foo.c /usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.a when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc /usr/bin/ld: cannot find -lc collect2: ld returned 1 exit status [EMAIL PROTECTED]:~$ gcc -m32 -O2 -W -Wall -o foo foo.c -L /usr/lib/i486-linux-gnu/ [EMAIL PROTECTED]:~$ Was that just misinformation? MfG Goswin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]