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