Add cygwin hacks.

This commit is contained in:
Ralf Corsepius
2007-07-24 03:47:09 +00:00
parent d292aaea08
commit ee4740b462
2 changed files with 8 additions and 0 deletions

View File

@@ -15,6 +15,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Required for building the infos
BuildRequires: /sbin/install-info
BuildRequires: texinfo >= 4.2
%else
%if "@tool_target@" == "i686-pc-cygwin"
BuildRequires: texinfo >= 4.2
%endif
%endif
BuildRequires: flex
BuildRequires: bison

View File

@@ -1,4 +1,8 @@
%build
%if "@tool_target@" == "i686-pc-cygwin"
# The cygwin sources are leaking memory
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
%endif
mkdir -p build
cd build
CFLAGS="$RPM_OPT_FLAGS" \