gdal/gdal-jni.patch
2017-12-11 20:51:13 +01:00

53 lines
1.8 KiB
Diff

Index: gdal-2.2.3-fedora/swig/include/java/gdalconst_java.i
===================================================================
--- gdal-2.2.3-fedora.orig/swig/include/java/gdalconst_java.i
+++ gdal-2.2.3-fedora/swig/include/java/gdalconst_java.i
@@ -13,7 +13,7 @@
static {
try {
- System.loadLibrary("gdalconstjni");
+ System.load("/usr/lib/java/gdal/libgdalconstjni.so");
available = true;
} catch (UnsatisfiedLinkError e) {
available = false;
Index: gdal-2.2.3-fedora/swig/include/java/gdal_java.i
===================================================================
--- gdal-2.2.3-fedora.orig/swig/include/java/gdal_java.i
+++ gdal-2.2.3-fedora/swig/include/java/gdal_java.i
@@ -15,7 +15,7 @@
static {
try {
- System.loadLibrary("gdaljni");
+ System.load("/usr/lib/java/gdal/libgdaljni.so");
available = true;
if (gdal.HasThreadSupport() == 0)
Index: gdal-2.2.3-fedora/swig/include/java/ogr_java.i
===================================================================
--- gdal-2.2.3-fedora.orig/swig/include/java/ogr_java.i
+++ gdal-2.2.3-fedora/swig/include/java/ogr_java.i
@@ -17,7 +17,7 @@
static {
try {
- System.loadLibrary("ogrjni");
+ System.load("/usr/lib/java/gdal/libogrjni.so");
available = true;
if (org.gdal.gdal.gdal.HasThreadSupport() == 0)
Index: gdal-2.2.3-fedora/swig/include/java/osr_java.i
===================================================================
--- gdal-2.2.3-fedora.orig/swig/include/java/osr_java.i
+++ gdal-2.2.3-fedora/swig/include/java/osr_java.i
@@ -20,7 +20,7 @@
static {
try {
- System.loadLibrary("osrjni");
+ System.load("/usr/lib/java/gdal/libosrjni.so");
available = true;
} catch (UnsatisfiedLinkError e) {
available = false;