summaryrefslogtreecommitdiff
path: root/user/grub
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2023-10-16 16:55:12 +0000
committerZach van Rijn <me@zv.io>2023-10-16 16:55:12 +0000
commit3d85bb63bce17f82ae2baa577b2ee702346fc7ff (patch)
treeeed6c725f8e20661b1042df2e48d5ba76852a2d7 /user/grub
parentc1026184b292497a9dd025c0138b26c391c37594 (diff)
downloadpackages-3d85bb63bce17f82ae2baa577b2ee702346fc7ff.tar.gz
packages-3d85bb63bce17f82ae2baa577b2ee702346fc7ff.tar.bz2
packages-3d85bb63bce17f82ae2baa577b2ee702346fc7ff.tar.xz
packages-3d85bb63bce17f82ae2baa577b2ee702346fc7ff.zip
user/grub: work around GCC optimization bug. fixes image#403.
Diffstat (limited to 'user/grub')
-rw-r--r--user/grub/APKBUILD3
1 files changed, 2 insertions, 1 deletions
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