Browse Source

fix config script

master
parent
commit
f387a95c43
  1. 20
      geos/geos.patch
  2. 2
      geos/geos.spec

20
geos/geos.patch

@ -0,0 +1,20 @@
Index: tools/geos-config.in
--- tools/geos-config.in.orig 2016-11-22 11:48:36.000000000 +0100
+++ tools/geos-config.in 2017-11-16 09:30:11.756453000 +0100
@@ -49,13 +49,13 @@
echo -L${libdir} -lgeos_c
;;
--cclibs)
- echo -L${libdir} -lgeos
+ echo -L${libdir} -lgeos_c -lgeos -lstdc++ -lm
;;
--static-clibs)
- echo -L${libdir} -lgeos_c -lgeos -lm
+ echo -L${libdir} -lgeos_c -lm
;;
--static-cclibs)
- echo -L${libdir} -lgeos -lm
+ echo -L${libdir} -lgeos_c -lgeos -lstdc++ -lm
;;
--ldflags)
echo -L${libdir}

2
geos/geos.spec

@ -36,6 +36,7 @@ Release: 20171116
# list of sources
Source0: http://download.osgeo.org/geos/geos-%{version}.tar.bz2
Patch0: geos.patch
# build information
BuildPreReq: OpenPKG, openpkg >= 20160101, gcc, gcc::with_cxx = yes
@ -57,6 +58,7 @@ PreReq: OpenPKG, openpkg >= 20160101
%prep
%setup -q
%patch -p0
%build
CC="%{l_cc}" \

Loading…
Cancel
Save