wok-4.x rev 12470
grub4dos: Fix Segmentation fault with new toolchain
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Nov 09 21:09:27 2022 +0000 (2022-11-09) |
parents | 6914a0c336eb |
children | 39f7962e4210 |
files | grub4dos/receipt |
line diff
1.1 --- a/grub4dos/receipt Wed Nov 09 19:06:12 2022 +0000 1.2 +++ b/grub4dos/receipt Wed Nov 09 21:09:27 2022 +0000 1.3 @@ -9,7 +9,7 @@ 1.4 WEB_SITE="http://grub4dos.sourceforge.net/" 1.5 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.6 1.7 -BUILD_DEPENDS="lzma gcc3" 1.8 +BUILD_DEPENDS="lzma" 1.9 1.10 # Rules to configure and make the package. 1.11 compile_rules() 1.12 @@ -22,7 +22,9 @@ 1.13 done 1.14 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \ 1.15 util/grub-install.in 1.16 - sh ./configure CC=gcc-3 \ 1.17 + # Use -fno-reorder-functions to avoid Segment fault with gcc >= 4.6 1.18 + sh ./configure \ 1.19 + CFLAGS="-march=i486 -Os -pipe -fno-reorder-functions" \ 1.20 --enable-preset-menu=$stuff/menu.lst \ 1.21 --without-curses \ 1.22 $CONFIGURE_ARGS &&