From 326663817459eb647f2866ceb441d26285919e72 Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Sat, 20 Aug 2022 14:55:58 +0800 Subject: [PATCH] Add safe compilation options fstack-protector-strong --- gnu-efi.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu-efi.spec b/gnu-efi.spec index 9c377bf..ba8ce3d 100644 --- a/gnu-efi.spec +++ b/gnu-efi.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: gnu-efi Version: 3.0.8 -Release: 10 +Release: 11 Summary: Development Libraries and headers for EFI Epoch: 1 License: BSD @@ -43,6 +43,8 @@ install -d gnuefi/gnu install -Dp %{SOURCE1} gnuefi/gnu/ %build +CFLAGS="$CFLAGS -fstack-protector-strong" +export CFLAGS make make apps %ifarch x86_64 @@ -77,6 +79,9 @@ mv ia32/apps/{route80h.efi,modelist.efi} %{buildroot}/boot/efi/EFI/%{efidir}/ia3 %{_includedir}/efi %changelog +* Sat Aug 20 2022 yaoxin - 1:3.0.8-11 +- Add safe compilation options fstack-protector-strong + * Mon Jun 7 2021 baizhonggui - 3.0.8-10 - Fix building error: make[1]: gcc: No such file or directory - Add gcc in BuildRequires -- Gitee