# HG changeset patch # User Stanislas Leduc # Date 1668028167 0 # Node ID 991c0409f618195207bab1d3f8d0aaf9d479ebef # Parent 6914a0c336eb298f76f62da149b933a5fc42822f grub4dos: Fix Segmentation fault with new toolchain diff -r 6914a0c336eb -r 991c0409f618 grub4dos/receipt --- a/grub4dos/receipt Wed Nov 09 19:06:12 2022 +0000 +++ b/grub4dos/receipt Wed Nov 09 21:09:27 2022 +0000 @@ -9,7 +9,7 @@ WEB_SITE="http://grub4dos.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" -BUILD_DEPENDS="lzma gcc3" +BUILD_DEPENDS="lzma" # Rules to configure and make the package. compile_rules() @@ -22,7 +22,9 @@ done sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \ util/grub-install.in - sh ./configure CC=gcc-3 \ + # Use -fno-reorder-functions to avoid Segment fault with gcc >= 4.6 + sh ./configure \ + CFLAGS="-march=i486 -Os -pipe -fno-reorder-functions" \ --enable-preset-menu=$stuff/menu.lst \ --without-curses \ $CONFIGURE_ARGS &&