From fb6a252b4a6910726de92092e765ddc1589f4045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 15 Jan 2018 21:20:40 +0100 Subject: [PATCH] grub: fix cross build for i686 --- srcpkgs/grub/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template index 13d02e95b6..e4a9dfb9f4 100644 --- a/srcpkgs/grub/template +++ b/srcpkgs/grub/template @@ -19,7 +19,12 @@ nopie=yes subpackages="grub-utils grub-i386-efi" case "$XBPS_TARGET_MACHINE" in - x86_64*) subpackages+=" grub-x86_64-efi"; _GRUBX64=1;; + x86_64*) subpackages+=" grub-x86_64-efi" + _GRUBX64=1 + ;; + i686*) CFLAGS="-D_FILE_OFFSET_BITS=64" + configure_args+=" ac_cv_sizeof_off_t=8" + ;; esac post_extract() {