mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-28 07:44:52 +00:00
Move lto disablement to a point where it works for this package
This commit is contained in:
parent
95f5dd8a82
commit
dc2f1a03d9
1 changed files with 5 additions and 5 deletions
10
grub2.spec
10
grub2.spec
|
@ -1,3 +1,8 @@
|
||||||
|
# This package calls binutils components directly and would need to pass
|
||||||
|
# in flags to enable the LTO plugins
|
||||||
|
# Disable LTO
|
||||||
|
%global _lto_cflags %{nil}
|
||||||
|
|
||||||
%undefine _hardened_build
|
%undefine _hardened_build
|
||||||
|
|
||||||
%global tarversion 2.04
|
%global tarversion 2.04
|
||||||
|
@ -182,11 +187,6 @@ git add grub-emu-%{tarversion}
|
||||||
git commit -m "After making subdirs"
|
git commit -m "After making subdirs"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# This package calls binutils components directly and would need to pass
|
|
||||||
# in flags to enable the LTO plugins
|
|
||||||
# Disable LTO
|
|
||||||
%define _lto_cflags %{nil}
|
|
||||||
|
|
||||||
%if 0%{with_efi_arch}
|
%if 0%{with_efi_arch}
|
||||||
%{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags}}
|
%{expand:%do_primary_efi_build %%{grubefiarch} %%{grubefiname} %%{grubeficdname} %%{_target_platform} %%{efi_target_cflags} %%{efi_host_cflags}}
|
||||||
%endif
|
%endif
|
||||||
|
|
Loading…
Reference in a new issue