On Friday 17 March 2006 00:02, Mikey wrote:
> When I look in /etc/env.d/05gcc, nothing is set for GCC_SPECS:

that's because hardened profiles have the default specs swapped from the 
default specs in a non-hardened profile ...

hardened profile specs: default vanilla
non-hardened profile specs: hardened default

basically, while building gcc, we do something like:
if use hardened ; then
        cp hardened.specs specs
else
        cp vanilla.specs specs
fi
where "specs" represents the default compiler settings

so the `gcc-config -l` output on a hardened system lists "vanilla" as an 
option while on a non-hardened system you get the option "hardened"

> So I guess my question is - how do I know everything is actually being
> compiled with the hardened specific flags?  A diff
> on /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/specs and hardened.specs shows no
> differences, is it safe to assume the default specs file is being used even
> though it is not being set anywhere in the environment?

see above as to why your diff showed no differences
-mike
-- 
[email protected] mailing list

Reply via email to