grub2: fix build when ASLR enabled
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Wed, 1 Apr 2020 21:44:37 +0000 (22:44 +0100)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Thu, 2 Apr 2020 12:42:26 +0000 (13:42 +0100)
commitfcd14017007db35a4a41ef4fd6b69a5e02edbd5e
tree0fa6642ab271cfb4e4e2b7078aef66befa89b4ee
parentb74386acc6793ee7effe92153e93e3f9fad7fc9c
grub2: fix build when ASLR enabled

Disable ASLR and filter '-fno-plt' from CFLAGS: solves building when
ASLR enabled by basically disabling ASLR.

Solves errors similar to:
relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIE
or
module missing GLOBAL_OFFSET_TABLE

Suggested-by: 李国 <uxgood.org@gmail.com>
Acked-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
package/boot/grub2/Makefile