use -fPIC on sparc and s390 arches

f41
Dennis Gilmore 16 years ago
parent c8a953af76
commit c3a9c07331

@ -1,7 +1,7 @@
Name: lpsolve Name: lpsolve
Summary: A Mixed Integer Linear Programming (MILP) solver Summary: A Mixed Integer Linear Programming (MILP) solver
Version: 5.5.0.13 Version: 5.5.0.13
Release: 1%{?dist} Release: 2%{?dist}
Source: http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz Source: http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://sourceforge.net/projects/lpsolve URL: http://sourceforge.net/projects/lpsolve
@ -25,6 +25,11 @@ Includes and definitions for developing with lpsolve
%prep %prep
%setup -q -n lp_solve_5.5 %setup -q -n lp_solve_5.5
%patch0 -p1 -b .cflags.patch %patch0 -p1 -b .cflags.patch
#sparc and s390 need -fPIC lets sed it
%ifarch sparcv9 sparc64 s390 s390x
sed -i -e 's|-fpic|-fPIC|g' Makefile*
sed -i -e 's|-fpic|-fPIC|g' lpsolve55/ccc
%endif
%build %build
cd lpsolve55 cd lpsolve55
@ -61,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/lpsolve %{_includedir}/lpsolve
%changelog %changelog
* Fri Jan 02 2009 Dennis Gilmore <dennis@ausil.us> - 5.5.0.13-2
- use -fPIC on sparc and s390 arches
* Mon Aug 04 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.13-1 * Mon Aug 04 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.13-1
- latest version - latest version

Loading…
Cancel
Save