bootstrap gcc for powerpc

Dan Kegel dank@kegel.com
Tue May 21 22:32:00 GMT 2002


Dimi Shahbaz wrote:
> /home2/dimator/3rdParty/crosstools/glibc-ppc/config.h:3:3: #error "glibc
> cannot be compiled without optimization"
> ...
> And here is my configure line:
> CFLAGS=-mcpu=403 CC=~/opt/ppc405/bin/powerpc-linux-gcc
> AR=~/opt/ppc405/bin/powerpc-linux-ar
> RANLIB=~/opt/ppc405/bin/powerpc-linux-ranlib ../glibc-2.2.5/configure
> --host=ppc-linux --enable-add-ons=linuxthreads
> --prefix=/home2/dimator/opt/ppc405/
> --with-headers=/home2/dimator/opt/ppc405/powerpc-linux/include/

Hrm.  I didn't see that #error the first time you showed me your
problem.  Perhaps if you added -O to CFLAGS?  Have a look at 
the default value of CFLAGS; you probably nuked a couple
important options when you overrode it.  (Nice packages let you 
override CFLAGS_EXTRA, that way you can't nuke vital options.  
Perhaps glibc is nice in that way.)
- Dan

------
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