[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bootstrap gcc for powerpc
From: |
Dan Kegel |
Subject: |
Re: bootstrap gcc for powerpc |
Date: |
Tue, 21 May 2002 22:36:53 -0700 |
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