[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multilib dirs and

From: Mike Frysinger
Subject: Re: multilib dirs and
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/ 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 ...

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]