From 970ad4f3f4ff255ca06c4b0a8152787cd1c5e336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 18 Jan 2021 18:41:09 +0700 Subject: [PATCH] refind: build with -fno-tree-loop-distribute-patterns Fix build for gcc-10 --- .../0001-Fix-GCC-10-compile-problem.patch | 25 +++++++++++++++++++ srcpkgs/refind/template | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/refind/patches/0001-Fix-GCC-10-compile-problem.patch diff --git a/srcpkgs/refind/patches/0001-Fix-GCC-10-compile-problem.patch b/srcpkgs/refind/patches/0001-Fix-GCC-10-compile-problem.patch new file mode 100644 index 00000000000..d93f719b78a --- /dev/null +++ b/srcpkgs/refind/patches/0001-Fix-GCC-10-compile-problem.patch @@ -0,0 +1,25 @@ +From e34a16301f425f273a67ed3abbc45840bc82d892 Mon Sep 17 00:00:00 2001 +From: srs5694 +Date: Fri, 15 May 2020 12:34:14 -0400 +Subject: [PATCH] Fix GCC 10 compile problem + +--- + Make.common | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git Make.common Make.common +index 3f0b919..95a3a97 100644 +--- Make.common ++++ Make.common +@@ -60,7 +60,7 @@ endif + # + + # ...for both GNU-EFI and TianoCore.... +-OPTIMFLAGS = -Os -fno-strict-aliasing ++OPTIMFLAGS = -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns + CFLAGS = $(OPTIMFLAGS) -fno-stack-protector -fshort-wchar -Wall + + # ...for GNU-EFI.... +-- +2.30.0 + diff --git a/srcpkgs/refind/template b/srcpkgs/refind/template index d7f8f2fba1c..85742b0385a 100644 --- a/srcpkgs/refind/template +++ b/srcpkgs/refind/template @@ -1,7 +1,7 @@ # Template file for 'refind' pkgname=refind version=0.12.0 -revision=2 +revision=3 archs="x86_64* i686* aarch64*" makedepends="gnu-efi-libs" depends="bash dosfstools efibootmgr"