summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-01-25 17:37:23 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-01-25 17:37:23 -0800
commit9d84e09edc5e0a8205e0f45849400acf35b18222 (patch)
treec3df9bbdc36237546a6189ab523c8537e49be133
parent1b0be9ec81fcddeec48e6e3ce3cbacab1f93ea29 (diff)
downloadsyslinux-9d84e09edc5e0a8205e0f45849400acf35b18222.tar.gz
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.
-rw-r--r--syslinux.spec.in4
1 files changed, 3 insertions, 1 deletions
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