Skip to content

Commit

Permalink
Add GDAL patch.
Browse files Browse the repository at this point in the history
This is a temporary workaround for
OSGeo/gdal#4815.
  • Loading branch information
Attila Oláh committed Mar 30, 2022
1 parent 5e0029a commit 4f0af12
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/gdal/gdal.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- configure
+++ configure
@@ -38844,7 +38844,7 @@

HAVE_GEOS="no"

- GEOS_LIBS="`${GEOS_CONFIG} --ldflags` -lgeos_c"
+ GEOS_LIBS="`${GEOS_CONFIG} --static-clibs`"
GEOS_CFLAGS="`${GEOS_CONFIG} --cflags`"
GEOS_VERSION="`${GEOS_CONFIG} --version`"

2 changes: 2 additions & 0 deletions lib/gdal/package.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ def download():
urls = URLS,
sha256 = SHA256,
strip_prefix = "{name}-{version}",
# Workaround for https://github.com/OSGeo/gdal/issues/4815.
patches = ["//lib/gdal:gdal.patch"],
)

0 comments on commit 4f0af12

Please sign in to comment.