From 3d85bb63bce17f82ae2baa577b2ee702346fc7ff Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Mon, 16 Oct 2023 16:55:12 +0000 Subject: user/grub: work around GCC optimization bug. fixes image#403. --- user/grub/APKBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user/grub/APKBUILD b/user/grub/APKBUILD index b38abfd3a..4c9c8093f 100644 --- a/user/grub/APKBUILD +++ b/user/grub/APKBUILD @@ -3,7 +3,7 @@ pkgname=grub pkgver=2.12_rc1 _pkgver=$(printf '%s' "$pkgver" | tr _ \~) -pkgrel=0 +pkgrel=1 pkgdesc="Boot loader with support for Linux, Multiboot and more" url="https://www.gnu.org/software/grub/" arch="all" @@ -58,6 +58,7 @@ _build_flavor() { flavor="$1" shift _configure="$@" + CFLAGS="${CFLAGS} -fno-reorder-functions" # Workaround for image#403 case $CTARGET_ARCH in ppc64) export CFLAGS="${CFLAGS} -mno-altivec";; # Workaround for http://savannah.gnu.org/bugs/?52629 esac -- cgit v1.2.3-70-g09d2