From c3a9c0733138bc9c0d157bc54eed5cefe3db2043 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 2 Jan 2009 21:07:14 +0000 Subject: [PATCH] use -fPIC on sparc and s390 arches --- lpsolve.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lpsolve.spec b/lpsolve.spec index afddaab..9c2e8ae 100644 --- a/lpsolve.spec +++ b/lpsolve.spec @@ -1,7 +1,7 @@ Name: lpsolve Summary: A Mixed Integer Linear Programming (MILP) solver Version: 5.5.0.13 -Release: 1%{?dist} +Release: 2%{?dist} Source: http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz Group: System Environment/Libraries URL: http://sourceforge.net/projects/lpsolve @@ -25,6 +25,11 @@ Includes and definitions for developing with lpsolve %prep %setup -q -n lp_solve_5.5 %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 cd lpsolve55 @@ -61,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/lpsolve %changelog +* Fri Jan 02 2009 Dennis Gilmore - 5.5.0.13-2 +- use -fPIC on sparc and s390 arches + * Mon Aug 04 2008 Caolan McNamara - 5.5.0.13-1 - latest version