[mikmod] - fix build on s390(x), the "floor" symbol in libmikmod must be resolved using libm

Dan Horák sharkcz at fedoraproject.org
Wed Jan 5 09:05:40 UTC 2011


commit f83bcd76041bacfe2a42e66130884ba5b6032061
Author: Dan Horák <dan at danny.cz>
Date:   Wed Jan 5 10:05:28 2011 +0100

    - fix build on s390(x), the "floor" symbol in libmikmod must be resolved using libm

 mikmod.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/mikmod.spec b/mikmod.spec
index 0c65dec..fb7f42f 100644
--- a/mikmod.spec
+++ b/mikmod.spec
@@ -1,7 +1,7 @@
 Summary: Music module player
 Name: mikmod
 Version: 3.2.2
-Release: 14.beta1%{?dist}
+Release: 15.beta1%{?dist}
 License: GPLv2 and LGPLv2+
 Group: Applications/Multimedia
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -31,6 +31,9 @@ Install the mikmod package if you need a MOD music file player.
 
 
 %build
+%ifarch s390 s390x
+export LIBS="-lm"
+%endif
 %configure
 make CFLAGS="$RPM_OPT_FLAGS `libmikmod-config --cflags`"
 
@@ -54,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Jan  5 2011 Dan Horák <dan[at]danny.cz> 3.2.2-15.beta1
+- fix build on s390(x), the "floor" symbol in libmikmod must be resolved using libm
+
 * Wed Dec  1 2010 Jindrich Novy <jnovy at redhat.com> 3.2.2-14.beta1
 - fix off-by-one in get_command() and add various code sanity fixes
 - remove unused macro from spec


More information about the scm-commits mailing list