[pocket-linux] Chapter 3 : no shell

David Horton dhorton at speakeasy.net
Sat Jun 19 18:56:03 CDT 2004


Bettes wrote:
> I was babling in my last mail.
> Of course a library can be harware independent untill you compile the source 
> code.
> 
> But I have still 2 questions.
> 
> My static linked bash was working. So it means that somewhere the libraries 
> for the Pentium I machine are available. At least as static libraries. Are 
> they also available as dynamic libraries ? And where ?
> 
> How can I see if a library is compatible with a certain hardware ?
> 
> Thanks
> Bettes
> 
> 

On my Redhat machine I have a /lib and a /lib/i686 directory.  I am 
assuming that the libraries in /lib are i386 compatible and the ones in 
/lib/i686 are optimized for P-II and higher CPUs.  Perhaps compiling the 
static BASH with the CC="gcc -mcpu=i386" causes the linker to select the 
proper, 386 compatible libraries.  But when copying dynamic libraries 
for Chapter three, these libraries may be symlinked to libraries in the 
/lib/i686 directory since you have a newer machine.  This is a guess, 
but it seems logical.

Dave



More information about the Pocket-Linux mailing list