mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
sys-boot/refind: add GCC 10 patch / custom-cflags fix
Closes: https://bugs.gentoo.org/723244 Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Theo Anderson <telans@posteo.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
committed by
Joonas Niilola
parent
eda587091c
commit
1aa0c940ee
11
sys-boot/refind/files/refind-0.12.0-gcc10.patch
Normal file
11
sys-boot/refind/files/refind-0.12.0-gcc10.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- 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....
|
||||
@@ -15,10 +15,14 @@ KEYWORDS="~amd64 ~x86"
|
||||
FS_USE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
|
||||
IUSE="${FS_USE} custom-cflags doc"
|
||||
|
||||
DEPEND=">=sys-boot/gnu-efi-3.0.2"
|
||||
DEPEND="sys-boot/gnu-efi"
|
||||
|
||||
DOCS=(README.txt)
|
||||
PATCHES=("${FILESDIR}/makefile.patch")
|
||||
PATCHES=(
|
||||
"${FILESDIR}/makefile.patch"
|
||||
"${FILESDIR}/${P}-gcc10.patch" # Bug 723244
|
||||
)
|
||||
|
||||
DOCS=( README.txt )
|
||||
|
||||
pkg_pretend() {
|
||||
if use custom-cflags; then
|
||||
@@ -78,7 +82,7 @@ src_compile() {
|
||||
FILESYSTEMS_GNUEFI="${fs_names[@]}"
|
||||
)
|
||||
if use custom-cflags; then
|
||||
make_flags=(CFLAGS="${CFLAGS}" "${make_flags[@]}")
|
||||
make_flags=(CFLAGS="${CFLAGS} -fno-tree-loop-distribute-patterns" "${make_flags[@]}")
|
||||
fi
|
||||
|
||||
emake "${make_flags[@]}" all_gnuefi
|
||||
|
||||
Reference in New Issue
Block a user