diff --git a/syslinux.spec b/syslinux.spec index b4cbd57..d7013e6 100644 --- a/syslinux.spec +++ b/syslinux.spec @@ -1,11 +1,12 @@ Summary: Simple kernel loader which boots from a FAT filesystem Name: syslinux Version: 3.07 -Release: 1 +Release: 2 License: GPL Group: Applications/System Source0: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{version}.tar.bz2 Patch0: syslinux-2.08-x86_64.patch +Patch1: syslinux-3.07-gcc4.patch ExclusiveArch: i386 x86_64 Buildroot: %{_tmppath}/%{name}-%{version}-root BuildPrereq: nasm >= 0.98.38-1, perl, netpbm-progs @@ -39,8 +40,11 @@ necessary to compile such modules. %prep %setup -q -n syslinux-%{version} %patch0 -p1 -b .x86_64 +%patch1 -p1 -b .gcc4 %build +CFLAGS="-Werror -Wno-unused -finline-limit=2000" +export CFLAGS make clean make installer make -C sample tidy