Creation of the NO_SSP build knob

Jeremie Le Hen jeremie at le-hen.org
Thu Sep 4 13:14:04 UTC 2008


Hello,

There is currently a knob to enable/disable SSP: WITH_SSP or
WITHOUT_SSP.  WITH_SSP is the default on -CURRENT, so no one had to put
WITH_SSP= in src.conf(5).  This has hidden the following bug so far:

When buildworld is run with WITH_SSP= on command-line or in src.conf(5),
it fails immediately with the following message, because the toolchain
is built with WITHOUT_SSP:

% "/usr/src/share/mk/bsd.own.mk", line 365: WITH_SSP and WITHOUT_SSP can't both be set.

My leaning is to create an additional knob NO_SSP, much like
NO_CPU_CFLAGS, that could be set internally.  However I'm not sure it
complies with the src.conf(5) policy.  Any objection to the patch below?

Thank you!
Best regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NO_SSP.diff
Type: text/x-diff
Size: 11165 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080904/694d267d/NO_SSP.bin


More information about the freebsd-hackers mailing list