]> xenbits.xensource.com Git - people/julieng/freebsd.git/commit
Only enable -fstack-protector-strong on gcc 4.9+ and default to -fstack-protector
authorngie <ngie@FreeBSD.org>
Sun, 18 Oct 2015 04:07:40 +0000 (04:07 +0000)
committerngie <ngie@FreeBSD.org>
Sun, 18 Oct 2015 04:07:40 +0000 (04:07 +0000)
commit49d57a74871534cd60670d00ac5817201bee6af1
tree6986c8fecb5e315568d6781100966a7c4aa7206b
parent2b1070cca99fcd6b56125e04c9b0076599fc2b39
Only enable -fstack-protector-strong on gcc 4.9+ and default to -fstack-protector
when -fstack-protector-strong is not available, like it was implicitly before
r288669

As noted by antoine@, devel/gcc (which is 4.8.5) lacks -fstack-protector-strong
support, whereas 4.8.4i (devel/gcc48) has the support.

Until a version is available which has -fstack-protector-strong support, be
conservative and only enable support with 4.9+.

Reviewed by: pfg
X-MFC with: r288669, r289465
Differential Revision: https://reviews.freebsd.org/D3924
share/mk/bsd.sys.mk