1 |
On Montag, 5. Mai 2008, Peter Volkov wrote: |
2 |
> В Вск, 04/05/2008 в 21:48 +0200, Enrico Weigelt пишет: |
3 |
> > I'm just installing qemu, which requires gcc-3.x for building. |
4 |
> > The current breaks are very ugly, IMHO. |
5 |
> > |
6 |
> > So I'm proposing to add the old gcc-3.x as depedency to qemu, |
7 |
> > at least as long as it doesn't build w/ newer gcc. |
8 |
> > |
9 |
> > What do you think about this ? |
10 |
> |
11 |
> How do you suppose to change gcc version portage uses on-the-fly? |
12 |
> Please, answer trough bugzilla where most bug reports/feature requests |
13 |
> should normally go. |
14 |
|
15 |
I suggest something like this: |
16 |
Get correct path of gcc-3 executable, then supply this with $CC to make. |
17 |
|
18 |
|
19 |
Code may look like this: |
20 |
|
21 |
# get last one of sorted list |
22 |
for t in $(ls -1 /usr/bin/gcc-3*|sort); do |
23 |
p=$t |
24 |
done |
25 |
einfo "Using $p for compiling." |
26 |
emake CC=$p |
27 |
|
28 |
Matthias |
29 |
-- |
30 |
gentoo-dev@l.g.o mailing list |