aports/testing/refind/gcc-10.patch

18 lines
437 B
Diff

Upstream: Should be
Reason: Fixes compilation with gcc-10
Taken from Gentoo Linux https://bugs.gentoo.org/723244
--- a/Make.common
+++ b/Make.common
@@ -60,7 +60,7 @@
#
# ...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....