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 |