- Fixed build failure with gcc-4.4.
This commit is contained in:
parent
cb8767fa4d
commit
9e7377f69e
13
gflags-1.0-gcc44.patch
Normal file
13
gflags-1.0-gcc44.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff -urNp gflags-1.0.orig/src/gflags_completions.cc gflags-1.0/src/gflags_completions.cc
|
||||
--- gflags-1.0.orig/src/gflags_completions.cc 2009-02-27 03:06:25.029458422 +0530
|
||||
+++ gflags-1.0/src/gflags_completions.cc 2009-02-27 03:11:06.451708527 +0530
|
||||
@@ -49,7 +49,8 @@
|
||||
|
||||
|
||||
#include "config.h"
|
||||
-#include <stdlib.h>
|
||||
+#include <cstdio>
|
||||
+#include <cstdlib>
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
@ -2,13 +2,14 @@
|
||||
|
||||
Name: gflags
|
||||
Version: 1.0
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Library for commandline flag processing
|
||||
|
||||
Group: Development/Tools
|
||||
License: BSD
|
||||
URL: http://code.google.com/p/google-%{name}/
|
||||
Source0: http://google-%{name}.googlecode.com/files/%{name}-%{version}.tar.gz
|
||||
Patch0: %{name}-1.0-gcc44.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: python-setuptools-devel
|
||||
|
||||
@ -30,6 +31,7 @@ This package contains development files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
@ -94,6 +96,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_includedir}/google/*.h
|
||||
|
||||
%changelog
|
||||
* Fri Feb 27 2009 Debarshi Ray <rishi@fedoraproject.org> - 1.0-3
|
||||
- Fixed build failure with gcc-4.4.
|
||||
|
||||
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user