From 217ae25d887e4842d9518962d412078c243b5066 Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Wed, 11 Jan 2023 11:00:47 -0500 Subject: [PATCH] Fix previous commit for non-x64 Signed-off-by: Robbie Harwood --- grub.macros | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grub.macros b/grub.macros index 63f63c9..af3d0e5 100644 --- a/grub.macros +++ b/grub.macros @@ -32,7 +32,12 @@ -e 's/^/ -fno-strict-aliasing /' \\\ %{nil} -%global host_cflags %{expand:%%(echo %{build_cflags} %{?_hardening_cflags} | %{cflags_sed})} -fstack-protector-strong -fcf-protection +%global host_cflags_ %{expand:%%(echo %{build_cflags} %{?_hardening_cflags} | %{cflags_sed})} -fstack-protector-strong +%ifarch x86_64 +%global host_cflags %{host_cflags_} -fcf-protection +%else +%global host_cflags %{host_cflags_} +%endif %global legacy_host_cflags \\\ %{expand:%%(echo %{host_cflags} | \\\ sed \\\