Gentoo Archives: gentoo-user

From: "Bo Ørsted Andresen" <bo.andresen@××××.dk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gcc-3.3.6 and the pentium-m flag
Date: Sat, 09 Jun 2007 16:54:11
Message-Id: 200706091848.35459.bo.andresen@zlin.dk
In Reply to: [gentoo-user] gcc-3.3.6 and the pentium-m flag by Randy Barlow
1 On Saturday 09 June 2007 18:39:29 Randy Barlow wrote:
2 > I am trying to install virtualbox to play with it (any other non-masked
3 > virtualization tools besides Xen and qemu that you might recommend me
4 > trying out?) and it wants to pull in gcc-3.3.6. That's fine, but I am
5 > using the -march=pentium-m flag on my laptop and that wasn't a valid
6 > flag in the days of gcc-3.3.6 so the build fails. Is there something
7 > similar to /etc/portage/package.use where I can specify different CFLAGS
8 > for this particular ebuild? Other suggestions?
9
10 Either put something like the following in /etc/portage/bashrc:
11
12 case "$CATEGORY/$PN" in
13 app-emulation/virtualbox)
14 CFLAGS="-march=..."
15 CXXFLAGS="$CFLAGS"
16 ;;
17 esac
18
19 Or:
20
21 # mkdir -p /etc/portage/env/app-emulation && echo 'CFLAGS="-march=..."
22 CXXFLAGS="$CFLAGS"' > /etc/portage/env/app-emulation/virtualbox
23
24 --
25 Bo Andresen

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] gcc-3.3.6 and the pentium-m flag Naga Toro <nagatoro@×××××.com>