Skip to content

Commit 5bb7b95

Browse files
committed
add geos-config --libs; #844
1 parent e347e1a commit 5bb7b95

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3983,7 +3983,7 @@ fi
39833983
$as_echo_n "checking geos-config usability... " >&6; }
39843984
if test `${GEOS_CONFIG} --version`
39853985
then
3986-
GEOS_CLIBS=`${GEOS_CONFIG} --clibs`
3986+
GEOS_CLIBS="`${GEOS_CONFIG} --libs` `${GEOS_CONFIG} --clibs`"
39873987
#GEOS_DEP_CLIBS=`geos-config --static-clibs` -- this gives -m instead of -lm, which breaks clang
39883988
# fixed in 3.7.0 at https://github.com/libgeos/libgeos/pull/73#issuecomment-262208677
39893989
GEOS_DEP_CLIBS=`${GEOS_CONFIG} --static-clibs | sed 's/-m/-lm/g'`

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ fi
520520
AC_MSG_CHECKING(geos-config usability)
521521
if test `${GEOS_CONFIG} --version`
522522
then
523-
GEOS_CLIBS=`${GEOS_CONFIG} --clibs`
523+
GEOS_CLIBS="`${GEOS_CONFIG} --libs` `${GEOS_CONFIG} --clibs`"
524524
#GEOS_DEP_CLIBS=`geos-config --static-clibs` -- this gives -m instead of -lm, which breaks clang
525525
# fixed in 3.7.0 at https://github.com/libgeos/libgeos/pull/73#issuecomment-262208677
526526
GEOS_DEP_CLIBS=`${GEOS_CONFIG} --static-clibs | sed 's/-m/-lm/g'`

inst/docker/gdal230/Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,18 @@ RUN R CMD INSTALL rgdal_*.tar.gz
121121

122122
RUN git clone https://github.com/r-spatial/sf.git
123123
RUN R CMD build --no-build-vignettes --no-manual sf
124-
RUN R CMD INSTALL sf_*gz
124+
RUN ldconfig
125125

126-
RUN Rscript -e 'install.packages(c("lwgeom", "tmap", "pool", "odbc", "mapview"), repos = "https://cloud.r-project.org")'
126+
RUN svn checkout svn://svn.r-forge.r-project.org/svnroot/rgeos/
127+
RUN R CMD build rgeos/pkg --no-build-vignettes
128+
RUN R CMD INSTALL rgeos_*tar.gz
129+
RUN geos-config --libs
127130

128-
RUN R CMD check --no-build-vignettes --no-manual --as-cran --run-dontrun sf_*tar.gz
131+
#RUN R CMD INSTALL sf_*gz
132+
133+
#RUN Rscript -e 'install.packages(c("lwgeom", "tmap", "pool", "odbc", "mapview"), repos = "https://cloud.r-project.org")'
134+
135+
#RUN R CMD check --no-build-vignettes --no-manual --as-cran --run-dontrun sf_*tar.gz
129136
#RUN R CMD check --no-build-vignettes --no-manual --as-cran sf_*tar.gz
130137
#RUN R CMD check --no-build-vignettes --no-manual sf_*tar.gz
131138

0 commit comments

Comments
 (0)