This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld.so's LD_LIBRARY_PATH/LD_PRELOAD in mixed 32bit and 64bit environment


On Mon, Aug 22, 2011 at 10:50 PM, Kalle Olavi Niemitalo <kon@iki.fi> wrote:
> Alon Bar-Lev <alon.barlev@gmail.com> writes:
>
>> LIB Âis Âexpanded to lib or lib64 based on the architecture. Use
>> when mixed environment Â(32bit Âand Â64bit) Âsearches Âfor Âsame
>> libraries names.
>
> Debian libc6 2.11.2-10 on AMD64 expands the tokens like this:
>
> LIB=lib         (not lib64)
> PLATFORM=x86_64
>
> Debian libc6 2.13-16 on Intel 64 expands the tokens like this:
>
> LIB=x86_64-linux-gnu
> PLATFORM=x86_64 Â Â Â Â (as above)
>
> So, it seems wrong to claim $LIB is expanded to lib or lib64.
> Tested with:
> % LD_LIBRARY_PATH='/LIB=$LIB/PLATFORM=$PLATFORM' strace true > /dev/null 2>&1 | grep LIB= | head -n1
>

Right.
I altered this somewhat.
Sent a patch to linux-man [1] per Jakub note.

Thanks for your help,
Alon.

[1] http://article.gmane.org/gmane.linux.man/2070


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]