diff --git a/grub2.spec b/grub2.spec index 4542688..598d265 100644 --- a/grub2.spec +++ b/grub2.spec @@ -333,6 +333,7 @@ cd grub-efi-%{tarversion} CFLAGS="$(echo $RPM_OPT_FLAGS | sed \ -e 's/-O.//g' \ -e 's/-fstack-protector[[:alpha:]-]\+//g' \ + -e 's/-Wp,-D_FORTIFY_SOURCE=[[:digit:]]\+//g' \ -e 's/--param=ssp-buffer-size=4//g' \ -e 's/-mregparm=3/-mregparm=4/g' \ -e 's/-fexceptions//g' \ @@ -384,6 +385,7 @@ cd grub-%{tarversion} CFLAGS="$(echo $RPM_OPT_FLAGS | sed \ -e 's/-O.//g' \ -e 's/-fstack-protector[[:alpha:]-]\+//g' \ + -e 's/-Wp,-D_FORTIFY_SOURCE=[[:digit:]]\+//g' \ -e 's/--param=ssp-buffer-size=4//g' \ -e 's/-mregparm=3/-mregparm=4/g' \ -e 's/-fexceptions//g' \