From 9d84e09edc5e0a8205e0f45849400acf35b18222 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 25 Jan 2007 17:37:23 -0800 Subject: Quick hack to make sure we build 32-bit binaries with the -m32 flag. Quick hack to make sure we build 32-bit binaries with the -m32 flag. This makes rpmbuild --target i386 do the right thing. A Makefile overhaul is really in order, though. --- syslinux.spec.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syslinux.spec.in b/syslinux.spec.in index b6128e79..f15ed412 100644 --- a/syslinux.spec.in +++ b/syslinux.spec.in @@ -15,8 +15,10 @@ BuildPrereq: nasm >= 0.98.38, perl Autoreq: 0 %ifarch x86_64 Requires: mtools, libc.so.6()(64bit) +%define mflag %else Requires: mtools, libc.so.6 +%define mflag -m32 %endif # NOTE: extlinux belongs in /sbin, not in /usr/sbin, since it is typically @@ -62,7 +64,7 @@ booting in the /tftpboot directory. %build make clean -make installer +make CC='gcc %{mflag}' installer make -C sample tidy %install -- cgit v1.2.1