Correct build on 32 bit arches

This commit is contained in:
pcpa 2014-04-29 17:33:25 -03:00
parent 26e7717bab
commit a207e20e65
2 changed files with 22 additions and 0 deletions

20
ppl-PlLong.patch Normal file
View File

@ -0,0 +1,20 @@
diff -up ppl-1.1/interfaces/Prolog/GNU/gprolog_efli.hh.orig ppl-1.1/interfaces/Prolog/GNU/gprolog_efli.hh
--- ppl-1.1/interfaces/Prolog/GNU/gprolog_efli.hh.orig 2014-04-29 17:25:21.639273848 -0300
+++ ppl-1.1/interfaces/Prolog/GNU/gprolog_efli.hh 2014-04-29 17:25:30.757274198 -0300
@@ -45,14 +45,14 @@ extern bool Prolog_has_unbounded_integer
integer value representable by a Prolog integer.
Holds zero otherwise.
*/
-extern long Prolog_min_integer;
+extern PlLong Prolog_min_integer;
/*!
If \p Prolog_has_unbounded_integers is false, holds the maximum
integer value representable by a Prolog integer.
Holds zero otherwise.
*/
-extern long Prolog_max_integer;
+extern PlLong Prolog_max_integer;
/*!
Performs system-dependent initialization.

View File

@ -15,6 +15,7 @@ Provides: ppl-pwl = %{version}-%{release}
Obsoletes: ppl-pwl <= 0.11.2-11
BuildRequires: gmp-devel >= 4.1.3, m4 >= 1.4.8
Patch0: %{name}-cstddef.patch
Patch1: %{name}-PlLong.patch
%description
The Parma Polyhedra Library (PPL) is a library for the manipulation of
@ -149,6 +150,7 @@ Install this package if you want to program with the PPL.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
CPPFLAGS="-I%{_includedir}/glpk"