]> git.pld-linux.org Git - packages/gdal.git/blame - gdal-pluginsdir.patch
Release 21 (by relup.sh)
[packages/gdal.git] / gdal-pluginsdir.patch
CommitLineData
eaaa2e4a
JR
1diff -urNp -x '*.orig' gdal-3.0.4.org/configure.ac gdal-3.0.4/configure.ac
2--- gdal-3.0.4.org/configure.ac 2021-04-02 16:52:15.663388370 +0200
3+++ gdal-3.0.4/configure.ac 2021-04-02 16:52:16.026721386 +0200
4@@ -5219,12 +5219,16 @@ dnl ------------------------------------
0a5f35eb 5
eaaa2e4a 6 if test "$prefix" = "NONE" ; then
0a5f35eb
JB
7 GDAL_PREFIX=/usr/local
8+ GDAL_LIBDIR=${GDAL_PREFIX}/lib
9 else
10 GDAL_PREFIX=${prefix}
11+ eval eval GDAL_LIBDIR="${libdir}"
12 fi
13
14 export GDAL_PREFIX
15+export GDAL_LIBDIR
16 AC_DEFINE_UNQUOTED(GDAL_PREFIX,["]$GDAL_PREFIX["], [--prefix directory for GDAL install])
17+AC_DEFINE_UNQUOTED(GDAL_LIBDIR,["]$GDAL_LIBDIR["], [--prefix directory for GDAL install])
18
19 dnl ---------------------------------------------------------------------------
20 dnl Perl bindings.
eaaa2e4a
JR
21diff -urNp -x '*.orig' gdal-3.0.4.org/gcore/gdaldrivermanager.cpp gdal-3.0.4/gcore/gdaldrivermanager.cpp
22--- gdal-3.0.4.org/gcore/gdaldrivermanager.cpp 2020-01-28 11:18:44.000000000 +0100
23+++ gdal-3.0.4/gcore/gdaldrivermanager.cpp 2021-04-02 16:52:16.026721386 +0200
24@@ -745,12 +745,12 @@ void GDALDriverManager::AutoLoadDrivers(
25 }
26 else
27 {
28-#ifdef GDAL_PREFIX
29+#if 1
30 papszSearchPath = CSLAddString( papszSearchPath,
31 #ifdef MACOSX_FRAMEWORK
32 GDAL_PREFIX "/PlugIns");
33 #else
34- GDAL_PREFIX "/lib/gdalplugins" );
35+ GDAL_LIBDIR "/gdalplugins" );
36 #endif
37 #else
38 char szExecPath[1024];
This page took 0.140071 seconds and 4 git commands to generate.