1 |
Mike Frysinger <vapier@g.o> wrote on 2010/09/24 16:30:35: |
2 |
> |
3 |
> On Friday, September 24, 2010 04:55:27 Joakim Tjernlund wrote: |
4 |
> > Mike Frysinger wrote on 2010/09/24 04:33:05: |
5 |
> > > On Thursday, September 23, 2010 10:37:47 Joakim Tjernlund wrote: |
6 |
> > > > Trying to add support for e300c2 in glibc/ports I got another error. |
7 |
> > > > when crossdev is building cross-glibc-headers it uses the hosts gcc |
8 |
> > > |
9 |
> > > > instead of the cross compiler and glibc configure fails: |
10 |
> > > by design. look at toolchain-glibc_headers_compile() in gentoo-x86/sys- |
11 |
> > > libs/glibc/files/eblits/src_compile.eblit. |
12 |
> > |
13 |
> > hmm, if I were to guess one needs to add |
14 |
> > libc_cv_cc_submachine=xxx, possibly with xxx=no |
15 |
> > to toolchain-glibc_headers_compile() ? |
16 |
> |
17 |
> you need to export the cache var to skip the sanity checks, not the "force a |
18 |
> specific machine type" |
19 |
|
20 |
yeah, that was what I did(export libc_cv_cc_submachine="-mcpu=e300c2") |
21 |
|
22 |
I was aiming for a more general solution, but I can't find one short of |
23 |
actually use the cross compiler. |
24 |
|
25 |
Jocke |