This patch will enable setting distro variables such as -fno_stack_protector as needed. It is a simple patch to buildtarget and can be extended for other uses.
If this patch is acceptable then we can fix the various makefiles to include the variable.
The only remaining question is the name -- is CPU_OPT really appropriate?
Signed-off-by: Ronald G. Minnich rminnich@gmail.com
---------- Forwarded message ---------- From: ron minnich rminnich@gmail.com Date: Dec 20, 2007 11:24 AM Subject: Re: [LinuxBIOS] Possible stack protect solutions To: Jordan Crouse jordan.crouse@amd.com Cc: linuxbios@linuxbios.org
Try this. This patch to buildtarget 1. sets up cpu opt for the no stack protector thing 2. sets up the makefiles for the target 3. the target builds But it's not picking up CPU_OPT. So we MUST have the other patch that ALWAYS includes CPU_OPT.
That said, I'd rather make the variable DISTRO_CC_OPT or some such.
Thanks
ron