On Tue, Jan 27, 2015 at 8:54 AM, Holger Hoffstätte <[email protected]> wrote: > On Tue, 27 Jan 2015 14:35:35 +0100, Raffaele BELARDI wrote: > >> I have a package failing build (media-tv/mythtv). One resource on the >> net suggests using the -fno-devirtualize gcc flag. Google tells me that >> the way to do that would be something like >> >> $ echo "CFLAGS=\"${CFLAGS} -fno-devirtualize\"" > >> /etc/portage/env/media-tv/mythtv >> >> but the references are pretty old. Is this still the preferred way? > > This alone won't work and might also be more confusing than necessary, as > the package-hierarchy-like naming is not required.
This alone works fine for me, and I don't find the naming confusing. I'm sure the way you referenced would also work, though it ends up dumping the configuration for every package into a single file. cat /etc/portage/env/media-tv/mythtv CFLAGS="-march=amdfam10 -Os -pipe -frename-registers -fweb" CXXFLAGS="-march=amdfam10 -Os -pipe -frename-registers -fweb" I would recommend that instead of just putting flags for each package in a separate file that you instead create a per-package config and then symlink it from the package name. As in: ls -l /etc/portage/env/media-tv/mythtv lrwxrwxrwx 1 root root 13 Oct 5 2012 /etc/portage/env/media-tv/mythtv -> ../noparallel -- Rich

