summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/syslinux.spec7
1 files changed, 7 insertions, 0 deletions
diff --git a/packaging/syslinux.spec b/packaging/syslinux.spec
index aead0594..0042c1e8 100644
--- a/packaging/syslinux.spec
+++ b/packaging/syslinux.spec
@@ -68,7 +68,14 @@ booting in the /var/lib/tftpboot directory.
%prep
%setup -q -a 10 -n %{name}-%{version}
+
%build
+%ifarch %{ix86}
+ORIG_CFLAGS="${CFLAGS}"
+CFLAGS='-O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables'
+export CFLAGS
+%endif
+
cp %{SOURCE1001} .
%define make %__make CC='%{my_cc}' OPTFLAGS="-DDEBUG=1 -O0" HEXDATE='0x00000000'