Do I need to compile glibc agian?

Dan Kegel dank@kegel.com
Thu Jan 27 15:36:00 GMT 2005


Tushar wrote:
> Hi all,
> I have just built croostool chain with build script 
> http://kegel.com/crosstool/crosstool-0.28.tar.gz.
> Configuration is gcc-3.4.1 glibc-2.3.3 linux kernel-2.6.8
> target=armv5b-softfloat-linux-gcc
> I is working for my target.
> 
> Now do I need to build a glibc again to use with new cross compiler.
> Config log of glibc built during build of cross compiler shows
> 	 
> 
>  /home/tushar/xspamArm/tools/src/glibc-2.3.3/configure --prefix=/usr
> --build=i686-pc-linux-gnu --host=armv5b-softfloat-linux --without-fp
> --enable-kernel=2.4.3 --without-cvs --disable-profile --disable-debug
> --without-gd --without-tls --without-__thread --enable-shared
> --enable-add-ons=linuxthreads,
> --with-headers=/opt/crosstool/armv5b-softfloat-linux/gcc-3.4.1-glibc-2.3.3/armv5b-softfloat-linux/sys-root/usr/include
>  
> 
> and specification of compiler used to build it is 
> 
> configure:2543: armv5b-softfloat-linux-gcc  -v </dev/null >&5
> Reading specs from
> /opt/crosstool/armv5b-softfloat-linux/gcc-3.4.1-glibc-2.3.3/lib/gcc/armv5b-softfloat-linux/3.4.1/specs
> Configured with: /home/tushar/xspamArm/tools/src/gcc-3.4.1/configure
> --target=armv5b-softfloat-linux --host=i686-host_pc-linux-gnu
> --prefix=/opt/crosstool/armv5b-softfloat-linux/gcc-3.4.1-glibc-2.3.3
> --with-local-prefix=/opt/crosstool/armv5b-softfloat-linux/gcc-3.4.1-glibc-2.3.3/armv5b-softfloat-linux/sys-root --disable-multilib --with-newlib --with-float=soft --with-cpu=xscale --enable-cxx-flags=-mcpu=xscale --with-sysroot=/opt/crosstool/armv5b-softfloat-linux/gcc-3.4.1-glibc-2.3.3/armv5b-softfloat-linux/sys-root --disable-nls --enable-threads=no --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c --disable-shared
> Thread model: single
> gcc version 3.4.1
> 
> 
> 
> Does this mean that programs using default glibc will not support
> multithreading? As they are built with compiler that has Thread
> model=single threaded.

Nope, it's ok that glibc was built with a nonthreaded compiler.
crosstool generates good glibc's that in general can be used
to build multithreaded systems.
- Dan

-- 
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list