summaryrefslogtreecommitdiffstats
path: root/cygwin.spec
diff options
context:
space:
mode:
Diffstat (limited to 'cygwin.spec')
-rw-r--r--cygwin.spec14
1 files changed, 13 insertions, 1 deletions
diff --git a/cygwin.spec b/cygwin.spec
index 31e8229..8efb79b 100644
--- a/cygwin.spec
+++ b/cygwin.spec
@@ -2,7 +2,7 @@
Name: cygwin
Version: 2.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Cygwin cross-compiler runtime
License: GPLv2 with exceptions
@@ -12,6 +12,11 @@ BuildArch: noarch
# downloaded and extracted by get-sources.sh
Source0: newlib-cygwin-%{version}.tar.bz2
+# GCC 5 patches
+Patch1: 0001-Fix-compile-with-GCC-5-Werror.patch
+Patch2: 0002-Remove-broken-ieeefp.h-macros.patch
+Patch3: 0003-cygwin-fix-errors-with-GCC-5.patch
+Patch4: 0004-cygwin-work-around-GCC-5-preprocessor-changes.patch
BuildRequires: cygwin32-filesystem >= 7
BuildRequires: cygwin32-binutils
@@ -65,6 +70,10 @@ Cygwin 64-bit cross-compiler runtime, base libraries.
%prep
%setup -q -n newlib-cygwin
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
touch winsup/cygwin/tlsoffsets*.h
touch winsup/cygwin/devices.cc
@@ -141,6 +150,9 @@ rm -fr $RPM_BUILD_ROOT%{cygwin64_includedir}/rpc/
%changelog
+* Wed Mar 30 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 2.4.1-2
+- Fix build with GCC 5
+
* Sun Feb 21 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 2.4.1-1
- new version