grub2: force -fno-stack-protector in CFLAGS
authorErico Nunes <nunes.erico@gmail.com>
Wed, 30 Aug 2017 01:47:56 +0000 (03:47 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 30 Aug 2017 20:09:21 +0000 (22:09 +0200)
commit2a27294e9ade6130a12ced9a1f152c51431a870e
treeffd87ce028e2b8c0cb25d74d952e9457e1bb0b57
parent4a03d1ac29fbd5d67145a7ee4631fd38163939ae
grub2: force -fno-stack-protector in CFLAGS

grub2 fails to configure when BR2_SSP_ALL is enabled, with the following
configure error:

  checking whether -fno-asynchronous-unwind-tables works... yes
  checking whether -fno-unwind-tables works... yes
  checking for target linking format... unknown
  configure: error: no suitable link format found

This can be worked around by enforcing -fno-stack-protector in the
package CFLAGS in a way that overrides the SSP flag, as is already done
for the valgrind package.

Fixes bug #10261.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reported-by: Dr I J Ormshaw <ian_ormshaw@waters.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
boot/grub2/grub2.mk