[libmpc/f15] fix build on armv5tel
Daniel Drake
dsd at fedoraproject.org
Sun Oct 9 16:51:06 UTC 2011
commit 3a411cfef5ff29953adee076fcd722859c43f8a8
Author: Daniel Drake <dsd at laptop.org>
Date: Sun Oct 9 17:45:24 2011 +0100
fix build on armv5tel
libmpc-no-werror.patch | 12 ++++++++++++
libmpc.spec | 16 +++++++++++++++-
2 files changed, 27 insertions(+), 1 deletions(-)
---
diff --git a/libmpc-no-werror.patch b/libmpc-no-werror.patch
new file mode 100644
index 0000000..94f1a02
--- /dev/null
+++ b/libmpc-no-werror.patch
@@ -0,0 +1,12 @@
+Index: mpc-0.8.3-dev/m4/mpc.m4
+===================================================================
+--- mpc-0.8.3-dev.orig/m4/mpc.m4
++++ mpc-0.8.3-dev/m4/mpc.m4
+@@ -116,7 +116,6 @@ AC_DEFUN([MPC_PROG_CC_WARNINGCFLAGS], [
+ AX_C_CHECK_FLAG(-Wno-long-long,,,$1="$$1 -Wno-long-long",)
+ AX_C_CHECK_FLAG(-Wall,,,$1="$$1 -Wall",)
+ AX_C_CHECK_FLAG(-Wextra,,,$1="$$1 -Wextra",)
+- AX_C_CHECK_FLAG(-Werror,,,$1="$$1 -Werror",)
+ AX_C_CHECK_FLAG(-Wdeclaration-after-statement,,,$1="$$1 -Wdeclaration-after-statement",)
+ AX_C_CHECK_FLAG(-Wundef,,,$1="$$1 -Wundef",)
+ AX_C_CHECK_FLAG(-Wshadow,,,$1="$$1 -Wshadow",)
diff --git a/libmpc.spec b/libmpc.spec
index c87e608..9fc3620 100644
--- a/libmpc.spec
+++ b/libmpc.spec
@@ -1,7 +1,7 @@
Summary: C library for multiple precision complex arithmetic
Name: libmpc
Version: 0.8.3
-Release: 0.3.svn855%{?dist}
+Release: 0.4.svn855%{?dist}
License: LGPLv2+
Group: Development/Tools
URL: http://www.multiprecision.org/
@@ -10,6 +10,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gmp-devel >= 4.3.2
BuildRequires: mpfr-devel >= 2.4.2
BuildRequires: texinfo
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+
+# Because -dev is included in the version number, libmpc decides to enable
+# -Werror during build. This combined with a glibc bug means that compile
+# fails on armv5tel (#744589). Work around the glibc issue by disabling
+# -Werror which is questionable anyway.
+Patch1: libmpc-no-werror.patch
%description
@@ -28,8 +37,10 @@ Header files and shared object symlinks for MPC is a C library.
%prep
%setup -q -n mpc-%{version}-dev
+%patch1 -p1
%build
+autoreconf -i
export CPPFLAGS="%{optflags} -std=gnu99"
export CFLAGS="%{optflags} -std=gnu99"
export EGREP=egrep
@@ -75,6 +86,9 @@ fi
%{_infodir}/*.info*
%changelog
+* Sun Oct 09 2011 Daniel Drake <dsd at laptop.org> - 0.8.3-0.4.svn855
+- Fix build on armv5tel by disabling -Werror
+
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8.3-0.3.svn855
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list