1 |
On Mon, 19 Dec 2005, Natanael Copa wrote: |
2 |
|
3 |
> On man, 2005-12-19 at 13:28 +0100, Peter S. Mazinger wrote: |
4 |
> > On Fri, 16 Dec 2005, Natanael Copa wrote: |
5 |
> > |
6 |
> > > On tor, 2005-12-15 at 12:19 -0500, René Rhéaume wrote: |
7 |
> > > > 2005/12/15, Natanael Copa <mlists@××××××.org>: |
8 |
> > > > > I'm trying to avoid the gcc runtime dependency. |
9 |
> > > > What do you mean ? libgcc or libstdc++ ? |
10 |
> > > |
11 |
> > > libstc++-v3 has like 23MB sources. It takes a while to compile. |
12 |
> > > (Besides, it failed to compile.) |
13 |
> > > |
14 |
> > > |
15 |
> > > # emerge -s libgcc |
16 |
> > > Searching... |
17 |
> > > [ Results for search key : libgcc ] |
18 |
> > > [ Applications found : 0 ] |
19 |
> > > |
20 |
> > > libgcc? where can i find it? |
21 |
> > > |
22 |
> > > I would be much better if I could get it work with uclibc++. Its much |
23 |
> > > smaller. |
24 |
> > > |
25 |
> > > I managed to get nmap to compile agains uclibc with |
26 |
> > > |
27 |
> > > CXX=g++-uc emerge nmap |
28 |
> > > |
29 |
> > > The romour says its possible to compile kde with uclibc++ so I was |
30 |
> > > hoping it would be possible to use uclibc++ |
31 |
> > > -- > Natanael Copa |
32 |
> > |
33 |
> > the rumours are right, I have built the whole kde suite (emerge kde) |
34 |
> > against uclibc++ (though not all uclibc++ related patches are in kde |
35 |
> > upstream probably - these patches are general c++ failures mostly in kde, |
36 |
> > not uclibc++ specific one, only libstdc++ tolerates some that are not |
37 |
> > allowed by specs). |
38 |
> > |
39 |
> > I haven't done it your way though. |
40 |
> > I have installed libuClibc++.so into the same dir where libstdc++.so sits, |
41 |
> > I have created an include/uclibcxx for headers at same location as |
42 |
> > include/g++-v3, I have created a new profile in /etc/env.d/gcc that uses |
43 |
> > the same config as the gcc used to build libuClibc++. I have created a new |
44 |
> > dir /usr/arch-*-uclibc/gcc-bin/<gcc-ver>-uclibcxx/ where every app is |
45 |
> > symlinked to /usr/arch-*-uclibc/gcc-bin/<gcc-ver>/, the only change is |
46 |
> > arch-*-linux-uclibc-c++, that is the uClibc++ wrapper |
47 |
> |
48 |
> Are you really sure that you mean "arch-*-linux-uclibc-c++" and not |
49 |
> "arch-*-linux-uclibc-g++"? Or both? |
50 |
|
51 |
both, g++ is a link to c++ in my |
52 |
/etc/i386-gentoo-linux-uclibc/gcc-bin/3.4.5-uclibcxx/ dir |
53 |
c++ is the wrapper |
54 |
|
55 |
> |
56 |
> When I like arch-*-linux-uclibc-c++ to g++-uc dansguardan gets compiled |
57 |
> but it is still linked against libstdc++.so.6 |
58 |
|
59 |
well, then your wrapper/setup is somehow wrong. It would be "easier" if |
60 |
an embedded dev would opt to add proper uClibc++ support to |
61 |
toolchain.eclass maybe, we could build along libstdc++ uClibc++ too and |
62 |
install both versions for !nocxx. |
63 |
The only problem I encountered is that the you can have only one version |
64 |
of uClibc++ installed, I tried slotting it (it should have the same |
65 |
slotting as gcc), but the only way out of this missery is to add it too |
66 |
the gcc pkg. What we also will encounter as problem is the |
67 |
SPLIT_SPECS=true case, how do we then use libstdc++/uClibc++ switching |
68 |
Maybe gcc-config/eselect* has to be improved to support changing the |
69 |
underlaying uClibc++. |
70 |
There would also be another way to do the setup: |
71 |
soname libuClibc++.so.0 as libstdc++.so.0 and switch only the |
72 |
libstdc++.so link from .so.[5,6] to libstdc++.so.0 or leave the soname as |
73 |
it is and create libuClibc++.so libstdc++.so link. Then we do not need the |
74 |
wrapper at all (the same has to happen with the include dir too, having |
75 |
g++-v3 a link either to the gcc/libstdc++ version or the uclibc++ header |
76 |
versions (STDCXX_INCDIR is ignored) |
77 |
|
78 |
Peter |
79 |
|
80 |
-- |
81 |
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2 |
82 |
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2 |
83 |
|
84 |
-- |
85 |
gentoo-embedded@g.o mailing list |