mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-28 07:44:52 +00:00
Fix compiler flags to deal with -fstack-protector-strong
This commit is contained in:
parent
739a29165e
commit
31fa3b5d35
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue