diff --git a/lib/gdal/gdal.patch b/lib/gdal/gdal.patch new file mode 100644 index 00000000..36e3989b --- /dev/null +++ b/lib/gdal/gdal.patch @@ -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`" + diff --git a/lib/gdal/package.bzl b/lib/gdal/package.bzl index 4ef27de5..927bfed1 100644 --- a/lib/gdal/package.bzl +++ b/lib/gdal/package.bzl @@ -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"], )