vapier at gentoo
Sep 24, 2010, 9:58 AM
Post #8 of 8
On Friday, September 24, 2010 11:48:48 Joakim Tjernlund wrote:
> Mike Frysinger wrote on 2010/09/24 16:30:35:
> > On Friday, September 24, 2010 04:55:27 Joakim Tjernlund wrote:
> > > Mike Frysinger wrote on 2010/09/24 04:33:05:
> > > > On Thursday, September 23, 2010 10:37:47 Joakim Tjernlund wrote:
> > > > > Trying to add support for e300c2 in glibc/ports I got another
> > > > > error. when crossdev is building cross-glibc-headers it uses the
> > > > > hosts gcc
> > > >
> > > > > instead of the cross compiler and glibc configure fails:
> > > > by design. look at toolchain-glibc_headers_compile() in
> > > > gentoo-x86/sys- libs/glibc/files/eblits/src_compile.eblit.
> > >
> > > hmm, if I were to guess one needs to add
> > > libc_cv_cc_submachine=xxx, possibly with xxx=no
> > > to toolchain-glibc_headers_compile() ?
> > you need to export the cache var to skip the sanity checks, not the
> > "force a specific machine type"
> yeah, that was what I did(export libc_cv_cc_submachine="-mcpu=e300c2")
> I was aiming for a more general solution, but I can't find one short of
> actually use the cross compiler.
general solution would be to introduce a "headers" configure option to glibc
to tell it to skip all the useless compiler checks