From e50dc128f488330167da5a7d16c7766639840c38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Mon, 26 Jan 2015 20:12:35 +0100 Subject: [PATCH] - disable -Werror to fix building with latest glibc --- czmq.spec | 2 ++ no-Werror.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 no-Werror.patch diff --git a/czmq.spec b/czmq.spec index 8ca6696..d7ebd41 100644 --- a/czmq.spec +++ b/czmq.spec @@ -7,6 +7,7 @@ License: LGPL v3+ Group: Libraries Source0: http://download.zeromq.org/%{name}-%{version}.tar.gz # Source0-md5: b9c060727275a98e866d4db26345c2d8 +Patch0: no-Werror.patch URL: http://zeromq.org/ BuildRequires: asciidoc BuildRequires: libsodium-devel @@ -49,6 +50,7 @@ Statyczna biblioteka CZMQ. %prep %setup -q +%patch0 -p1 %build # use include subdir - file names could be too common (zfile.h etc.) diff --git a/no-Werror.patch b/no-Werror.patch new file mode 100644 index 0000000..38344c3 --- /dev/null +++ b/no-Werror.patch @@ -0,0 +1,11 @@ +--- czmq-2.2.0/configure.ac~ 2014-04-23 14:46:58.000000000 +0200 ++++ czmq-2.2.0/configure.ac 2015-01-26 20:11:55.802471286 +0100 +@@ -295,7 +295,7 @@ + + # These options are GNU compiler specific. + if test "x$GCC" = "xyes"; then +- CPPFLAGS="-pedantic -Werror -Wall ${CPPFLAGS}" ++ CPPFLAGS="-pedantic -Wall ${CPPFLAGS}" + fi + + AM_CONDITIONAL(ON_MINGW, test "x$czmq_on_mingw32" = "xyes") -- 2.43.0