On Saturday 09 June 2007 18:39:29 Randy Barlow wrote:
> I am trying to install virtualbox to play with it (any other non-masked
> virtualization tools besides Xen and qemu that you might recommend me
> trying out?) and it wants to pull in gcc-3.3.6.  That's fine, but I am
> using the -march=pentium-m flag on my laptop and that wasn't a valid
> flag in the days of gcc-3.3.6 so the build fails.  Is there something
> similar to /etc/portage/package.use where I can specify different CFLAGS
> for this particular ebuild?  Other suggestions?

Either put something like the following in /etc/portage/bashrc:

case "$CATEGORY/$PN" in
    app-emulation/virtualbox)
        CFLAGS="-march=..."
        CXXFLAGS="$CFLAGS"
    ;;
esac

Or:

# mkdir -p /etc/portage/env/app-emulation && echo 'CFLAGS="-march=..."
CXXFLAGS="$CFLAGS"' > /etc/portage/env/app-emulation/virtualbox

-- 
Bo Andresen

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to