[pocket-linux] Problems with Section 2.3.10 and 2.3.11

David Horton dhorton at megsinet.net
Wed Dec 29 19:54:05 CST 2004


> For the record, I'm using the Pocket Linux Guide from TLDP
> http://www.tldp.org/LDP/Pocket-Linux-Guide/html/x180.html
> Revision 3.0 (2004-11-02)
> 
> Correction 1:
>    Section:    2.3.2
>    Current:    ./configure --host=i386-pc-linux-gnu --without-curses
>    Change:   ./configure --build=i386-pc-linux-gnu --without-curses
>    Reason:   configure script prints out a warning about using "build" 
> instead of "host"
> 
> Correction 2:
>    Section:     2.3.9:
>    Current:    ./configure --enable-static-link --enable-minimal-config 
> --host=i386-pc-linux-gnu
>    Change:   ./configure --enable-static-link --enable-minimal-config 
> --build=i386-pc-linux-gnu
>    Reason:   configure script prints out a warning about using "build" 
> instead of "host"
> 

All of the --host, --build and --target stuff can really make your head 
spin.  I got my information my experiences building glibc and I have 
applied it to the other GNU packages.  Take a look at the document at: 
http://www.gnu.org/software/libc/manual/html_node/Configuring-and-compiling.html

About 3/4's of the way down it says:
"If you only specify --host, configure will prepare for a native compile 
but use what you specify instead of guessing what your system is. This 
is most useful to change the CPU submodel. For example, if configure 
guesses your machine as i586-pc-linux-gnu but you want to compile a 
library for 386es, give --host=i386-pc-linux-gnu or just 
--host=i386-linux and add the appropriate compiler flags (-mcpu=i386 
will do the trick) to CFLAGS."

I know the configure script gives a warning, but according to the glibc 
manual it looks to me like --host is the right thing to do.

Dave



More information about the Pocket-Linux mailing list