Fix compiler flags to deal with -fstack-protector-strong
This commit is contained in:
parent
739a29165e
commit
31fa3b5d35
@ -647,6 +647,7 @@ cd grub-efi-%{tarversion}
|
|||||||
CFLAGS="$(echo $RPM_OPT_FLAGS | sed \
|
CFLAGS="$(echo $RPM_OPT_FLAGS | sed \
|
||||||
-e 's/-O.//g' \
|
-e 's/-O.//g' \
|
||||||
-e 's/-fstack-protector\(-[[:alnum:]]\+\)*//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/--param=ssp-buffer-size=4//g' \
|
||||||
-e 's/-mregparm=3/-mregparm=4/g' \
|
-e 's/-mregparm=3/-mregparm=4/g' \
|
||||||
-e 's/-fexceptions//g' \
|
-e 's/-fexceptions//g' \
|
||||||
@ -685,7 +686,8 @@ cd grub-%{tarversion}
|
|||||||
%configure \
|
%configure \
|
||||||
CFLAGS="$(echo $RPM_OPT_FLAGS | sed \
|
CFLAGS="$(echo $RPM_OPT_FLAGS | sed \
|
||||||
-e 's/-O.//g' \
|
-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/--param=ssp-buffer-size=4//g' \
|
||||||
-e 's/-mregparm=3/-mregparm=4/g' \
|
-e 's/-mregparm=3/-mregparm=4/g' \
|
||||||
-e 's/-fexceptions//g' \
|
-e 's/-fexceptions//g' \
|
||||||
|
Loading…
Reference in New Issue
Block a user