1 |
On 11-09-2007 10:25:23 +0200, Michael Haubenwallner wrote: |
2 |
> Hi, |
3 |
> |
4 |
> please de-keyword gcc-4.2.0 for "~ppc-aix", there is a problem with |
5 |
> libstdc++[1]. Although this is for gcc-4.2.1, besides some gentoo-caused |
6 |
> build error I've encountered exactly the same with gcc-4.2.0. |
7 |
|
8 |
I de-keyworded it for now. I'm waiting for your long awaited |
9 |
introduction to the arena such you can fix things yourself. |
10 |
|
11 |
|
12 |
> [1] http://gcc.gnu.org/ml/gcc-help/2007-09/msg00100.html |
13 |
> |
14 |
> For the gentoo-caused build error: |
15 |
> |
16 |
> gcc knows it needs "-bbigtoc" linker flag. Unfortunately, gcc_do_make() |
17 |
> (from toolchain.eclass) calls "emake 'LDFLAGS=${LDFLAGS}'", which wipes |
18 |
> out the gcc-preset "-Wl,-bbigtoc", set from gcc-4.2.0/config/mh-ppc-aix: |
19 |
> |
20 |
> $ find gcc-4.2.0 -type f | xargs fgrep bbigtoc |
21 |
> gcc-4.2.0/config/mh-ppc-aix:BOOT_LDFLAGS = -Wl,-bbigtoc |
22 |
> gcc-4.2.0/config/mh-ppc-aix:LDFLAGS = `case $(CC) in *gcc*) echo -Wl,-bbigtoc ;; esac;` |
23 |
> |
24 |
> My fix to get gcc-4.2.0 compiled (remember: libstdc++ not working) on |
25 |
> aix was to |
26 |
> append-ldflags -Wl,-bbigtoc |
27 |
> in src_compile() for "${CHOST} == *-aix*". |
28 |
> |
29 |
> But maybe this should be done more intelligent by extracting LDFLAGS |
30 |
> from config/mh-ppc-aix ? |
31 |
> |
32 |
> I'm thinking here on sth. like this: |
33 |
> |
34 |
> CC=$(tc-getCC) make -s -f - -f ${S}/config/mh-ppc-aix getldflags <<EOF |
35 |
> getldflags:; echo \$(LDFLAGS) |
36 |
> EOF |
37 |
> |
38 |
> Thoughts ? |
39 |
> |
40 |
> Eventually gcc_do_make() should avoid passing LDFLAGS (and others) if |
41 |
> not preset by ebuild (or user) ? |
42 |
|
43 |
-- |
44 |
Fabian Groffen |
45 |
Gentoo on a different level |
46 |
-- |
47 |
gentoo-alt@g.o mailing list |