summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-01-28 16:45:33 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-01-28 16:45:33 -0800
commite8867319d9a1336eed644f7ac9438bf6a89ba762 (patch)
tree7f0c6960648544df0774bbf486b466f54df02fce
parentbb252401072a4976170700fe407078ae4e80d650 (diff)
downloadsyslinux-e8867319d9a1336eed644f7ac9438bf6a89ba762.tar.gz
Apparently rpmbuild can't deal with empty macros. Morons.
-rw-r--r--syslinux.spec.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/syslinux.spec.in b/syslinux.spec.in
index d635d4f9..0559c009 100644
--- a/syslinux.spec.in
+++ b/syslinux.spec.in
@@ -15,10 +15,10 @@ BuildPrereq: nasm >= 0.98.38, perl
Autoreq: 0
%ifarch x86_64
Requires: mtools, libc.so.6()(64bit)
-%define mflag
+%define cc gcc
%else
Requires: mtools, libc.so.6
-%define mflag -m32
+%define cc gcc -m32
%endif
# NOTE: extlinux belongs in /sbin, not in /usr/sbin, since it is typically
@@ -63,9 +63,9 @@ booting in the /tftpboot directory.
%setup -q -n syslinux-%{VERSION}
%build
-make CC='gcc %{mflag}' clean
-make CC='gcc %{mflag}' installer
-make CC='gcc %{mflag}' -C sample tidy
+make CC='%{cc}' clean
+make CC='%{cc}' installer
+make CC='%{cc}' -C sample tidy
%install
rm -rf %{buildroot}
@@ -74,10 +74,10 @@ mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_datadir}/syslinux
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}/boot %{buildroot}/tftpboot/pxelinux.cfg
-make CC='gcc %{mflag}' install-all \
+make CC='%{cc}' install-all \
INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
LIBDIR=%{_datadir} INCDIR=%{_includedir}
-make CC='gcc %{mflag}' -C sample tidy
+make CC='%{cc}' -C sample tidy
cp mkdiskimage sys2ansi.pl keytab-lilo.pl %{buildroot}%{_datadir}/syslinux
cp %{buildroot}%{_datadir}/syslinux/*.c32 %{buildroot}/boot
cp %{buildroot}%{_datadir}/syslinux/memdisk %{buildroot}/boot