Fix compiler flags to deal with -fstack-protector-strong

This commit is contained in:
Peter Jones 2013-08-05 11:49:40 -04:00
parent 739a29165e
commit 31fa3b5d35

View file

@ -647,6 +647,7 @@ cd grub-efi-%{tarversion}
CFLAGS="$(echo $RPM_OPT_FLAGS | sed \
-e 's/-O.//g' \
-e 's/-fstack-protector\(-[[:alnum:]]\+\)*//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' \
@ -685,7 +686,8 @@ cd grub-%{tarversion}
%configure \
CFLAGS="$(echo $RPM_OPT_FLAGS | sed \
-e 's/-O.//g' \
-e 's/-fstack-protector//g' \
-e 's/-fstack-protector\(-[[:alnum:]]\+\)*//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' \