Necktwi$ cat /etc/portage/env/O0 CFLAGS=${CFLAGS//-O2/-O0} CXXFLAGS=$CFLAGS Necktwi$ sudo emerge -av some_package These are the packages that would be merged, in order: Calculating dependencies -"/etc/portage/env/O0", line 2: unexpected EOF while looking for matching `}'
you need to use bachrc env files, not package.env for that to work. place contents of env/O0 file to /etc/portage/env/some-category/some_package it should work from there. https://dev.gentoo.org/~zmedico/portage/doc/ch01.html#config-bashrc-locations