toolchain: fix detection of SSP support
authorCarlos Santos <casantos@datacom.ind.br>
Sun, 25 Mar 2018 03:59:52 +0000 (00:59 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 25 Mar 2018 20:52:33 +0000 (22:52 +0200)
commitc8680956819fae8776d7bd6d1f0e67a7b6436672
tree5e15208fd8ae628156b1a2ffdd8a7d09b262b191
parent05dc106db43478f295c29fd708fbfdf1df8b6a1a
toolchain: fix detection of SSP support

GCC issues a warning message if -fstack-protector is passed but SSP is
not available, so in order to force the compilation to fail we must also
pass -Werror.

All external toolchains were verified. The only one whose configuration
incorrectly selected BR2_TOOLCHAIN_HAS_SSP was CodeSourcery NIOSII.

Fixes:
  http://autobuild.buildroot.net/results/ce8fe8ac9cf0db01ae15d476ea714ff176965cfb
  http://autobuild.buildroot.net/results/09ce8f05e28c0219f499ce55130e896cae0c8b45

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
toolchain/helpers.mk
toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in