Re: Appending switches to CXXFLAGS in an ebuild Nikos Chantziaras wrote:
> I want to append switches to CXXFLAGS but not in CFLAGS. This:
>
> append-flags "-fno-strict-aliasing -fno-rtti -fno-exceptions"
>
> will append those switches to both CFLAGS as well as CXXFLAGS, which I
> don't want. Any solution?
- if you want this for all the packages, set CXXFLAGS in /etc/make.conf
- if it's only for some packages, then put the flags
in /etc/portage/env/category/package or in /etc/portage/bashrc
Google for "gentoo per-package CFLAGS". See bug #44796 on bugs.gentoo.org. |