From: Mike Gilbert Date: Thu, 20 Feb 2020 06:51:42 +0000 (-0800) Subject: build: Disable PIE in TARGET_CCASFLAGS if needed X-Git-Tag: grub-2.06-rc1~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c71be831f159ab5b8913132143bdb783a8b4b2a3;p=thirdparty%2Fgrub.git build: Disable PIE in TARGET_CCASFLAGS if needed PIE should be disabled in assembly sources as well, or else GRUB will fail to boot. Bug: https://bugs.gentoo.org/667852 Signed-off-by: Mike Gilbert Signed-off-by: Matt Turner Reviewed-by: Daniel Kiper Tested-by: John Paul Adrian Glaubitz --- diff --git a/configure.ac b/configure.ac index 54f3bad59..f19489418 100644 --- a/configure.ac +++ b/configure.ac @@ -1263,6 +1263,7 @@ grub_CHECK_LINK_PIE # `-fPIE' or '-fpie' and '-pie' in the default specs. if [ x"$pie_possible" = xyes ]; then TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE -fno-pie" + TARGET_CCASFLAGS="$TARGET_CCASFLAGS -fno-PIE -fno-pie" fi if [ x"$link_nopie_needed" = xyes ] || [ x"$pie_possible" = xyes ]; then