[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multilib dirs and ld.so
From: |
Mike Frysinger |
Subject: |
Re: multilib dirs and ld.so |
Date: |
Wed, 22 Aug 2007 06:40:54 -0400 |
User-agent: |
KMail/1.9.7 |
On Wednesday 22 August 2007, Peter O'Gorman wrote:
> libsuff=`ldd conftest 2>/dev/null | awk '/libc\.so/
> {n=split([$]3,x,"/"); for (i=0; i < n; i++) { if (x[[i]] == "lib64") {print
> "64"}}}'`
this test would still be subject to the environment of ldd ... in otherwords,
it is still possible to have ldd return /lib/libc.so.6 when /lib is a symlink
to /lib64 ...
since the dynamic loader is the only hardcoded path, wouldnt it be better to
check that ? so drop the /libc\.so/ and change the $3 to $1 ...
-mike
signature.asc
Description: This is a digitally signed message part.