diff --git a/libev-4.11-Respect-the-CFLAGS-if-defined.patch b/libev-4.11-Respect-the-CFLAGS-if-defined.patch new file mode 100644 index 0000000..6c97735 --- /dev/null +++ b/libev-4.11-Respect-the-CFLAGS-if-defined.patch @@ -0,0 +1,32 @@ +From c7106c0dfb3c7692f7a928b18b2d1bd1b0e10d76 Mon Sep 17 00:00:00 2001 +From: Mathieu Bridon +Date: Fri, 8 Feb 2013 17:12:55 +0800 +Subject: [PATCH] Respect the CFLAGS if defined + +https://bugzilla.redhat.com/show_bug.cgi?id=908096 +--- + configure.ac | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index a87761f..827aa4a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1,5 +1,3 @@ +-orig_CFLAGS="$CFLAGS" +- + AC_INIT([libev], [4.11]) + AC_CONFIG_SRCDIR([ev_epoll.c]) + +@@ -7,6 +5,8 @@ AM_INIT_AUTOMAKE + AC_CONFIG_HEADERS([config.h]) + AM_MAINTAINER_MODE + ++orig_CFLAGS="$CFLAGS" ++ + AC_PROG_CC + + dnl Supply default CFLAGS, if not specified +-- +1.8.1 + diff --git a/libev.spec b/libev.spec index 93aa19e..93f462e 100644 --- a/libev.spec +++ b/libev.spec @@ -13,6 +13,7 @@ BuildRequires: autoconf automake libtool Patch0: libev-4.11-Add-pkgconfig-support.patch Patch1: libev-4.11-Modernize-the-configure.ac.patch +Patch2: libev-4.11-Respect-the-CFLAGS-if-defined.patch %description Libev is modeled (very loosely) after libevent and the Event Perl @@ -46,6 +47,7 @@ This package contains the source code for libev. %patch0 -p1 %patch1 -p1 +%patch2 -p1 autoreconf -i @@ -93,6 +95,8 @@ install -p -m 0644 Changes ev.pod LICENSE README %{inst_srcdir} %changelog - Make a patch out of Michal's pkgconfig support. - Modernize the configure.ac file for Automake >= 1.13. +- Respect the Fedora CFLAGS + https://bugzilla.redhat.com/show_bug.cgi?id=908096 * Fri Sep 28 2012 Mathieu Bridon - 4.11-1 - Update to 4.11