1 |
On Fri, 16 Dec 2005, Natanael Copa wrote: |
2 |
|
3 |
> On tor, 2005-12-15 at 12:19 -0500, René Rhéaume wrote: |
4 |
> > 2005/12/15, Natanael Copa <mlists@××××××.org>: |
5 |
> > > I'm trying to avoid the gcc runtime dependency. |
6 |
> > What do you mean ? libgcc or libstdc++ ? |
7 |
> |
8 |
> libstc++-v3 has like 23MB sources. It takes a while to compile. |
9 |
> (Besides, it failed to compile.) |
10 |
> |
11 |
> |
12 |
> # emerge -s libgcc |
13 |
> Searching... |
14 |
> [ Results for search key : libgcc ] |
15 |
> [ Applications found : 0 ] |
16 |
> |
17 |
> libgcc? where can i find it? |
18 |
> |
19 |
> I would be much better if I could get it work with uclibc++. Its much |
20 |
> smaller. |
21 |
> |
22 |
> I managed to get nmap to compile agains uclibc with |
23 |
> |
24 |
> CXX=g++-uc emerge nmap |
25 |
> |
26 |
> The romour says its possible to compile kde with uclibc++ so I was |
27 |
> hoping it would be possible to use uclibc++ |
28 |
> -- > Natanael Copa |
29 |
|
30 |
the rumours are right, I have built the whole kde suite (emerge kde) |
31 |
against uclibc++ (though not all uclibc++ related patches are in kde |
32 |
upstream probably - these patches are general c++ failures mostly in kde, |
33 |
not uclibc++ specific one, only libstdc++ tolerates some that are not |
34 |
allowed by specs). |
35 |
|
36 |
I haven't done it your way though. |
37 |
I have installed libuClibc++.so into the same dir where libstdc++.so sits, |
38 |
I have created an include/uclibcxx for headers at same location as |
39 |
include/g++-v3, I have created a new profile in /etc/env.d/gcc that uses |
40 |
the same config as the gcc used to build libuClibc++. I have created a new |
41 |
dir /usr/arch-*-uclibc/gcc-bin/<gcc-ver>-uclibcxx/ where every app is |
42 |
symlinked to /usr/arch-*-uclibc/gcc-bin/<gcc-ver>/, the only change is |
43 |
arch-*-linux-uclibc-c++, that is the uClibc++ wrapper |
44 |
in /etc/env.d/gcc/ I have copied the config of used build gcc to |
45 |
arch-*-linux-uclibc-<gcc-ver>-uclibcxx and replaced |
46 |
PATH/ROOTPATH/STDCXX_INCDIR w/ new locations (STDCXX_INCDIR is useless, |
47 |
don't rely on that, because it is not used -correctly-, you have to use |
48 |
the correct path in the wrapper) |
49 |
Now I can switch w/ gcc-config to the profile using uclibc++ as with any |
50 |
other gcc one. |
51 |
Currently it is heavily dependant on the gcc version used to build |
52 |
uClibc++, don't try to use it w/ other gcc. |
53 |
|
54 |
Peter |
55 |
|
56 |
-- |
57 |
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2 |
58 |
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2 |
59 |
|
60 |
-- |
61 |
gentoo-embedded@g.o mailing list |