Change the configuration of gcc?

I had problems compiling gnome in my system that uses the profile selinux-hardened, the problem was with
Glimm whose solutions found in http://bugs.gentoo.org/show_bug.cgi?id=217112 # c5 where I was told to
do: 
 gcc-config i686-pc-linux-gnu-3.4.6-hardenednossp & & source / etc / profile & & emerge -1 glibmm
After this glibmm will compile without any problems, but What are changing the configuration of gcc
according to which the problem of glibmm can bring other problems to compile packages?

Pavel Labushev | 16 Oct 05:51

Re: Change the configuration of gcc?

Ernesto Rodriguez Ortiz пишет:

> After this glibmm will compile without any problems, but What are changing the configuration of gcc
according to which the problem of glibmm can bring other problems to compile packages?

If you need to disable SSP for glibmm only, there's no point in using
hardenednossp compiler specs all the time. So just switch the hardened
profile back right after glibmm compilation:

# gcc-config i686-pc-linux-gnu-3.4.6-hardened

You can use /etc/portage/env/package-category/package-name files to
alter portage environment on a per-package basis:

# mkdir -p /etc/portage/env/dev-cpp
# cat > /etc/portage/env/dev-cpp/glibmm
CC="/usr/bin/gcc-3.4.6"
CXX="/usr/bin/gcc-3.4.6"
. /etc/env.d/gcc/i686-pc-linux-gnu-3.4.6-hardenednossp
^D

This way you don't need to switch compilers and specs manually at all.


Gmane