Merge branch '8.11'
This commit is contained in:
commit
ec1d1abf50
@ -1,6 +1,11 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
14/6/21 started 8.12
|
14/6/21 started 8.12
|
||||||
- all tools support `--version`
|
- all tools support `--version`
|
||||||
- add vips_svgload_string() convenience function
|
- add vips_svgload_string() convenience function
|
||||||
|
=======
|
||||||
|
14/8/20 started 8.11.2
|
||||||
|
- better libdir guessing [remi]
|
||||||
|
>>>>>>> 8.11
|
||||||
|
|
||||||
14/8/20 started 8.11.1
|
14/8/20 started 8.11.1
|
||||||
- add more example code to C docs
|
- add more example code to C docs
|
||||||
|
@ -1205,18 +1205,23 @@ const char *
|
|||||||
vips_guess_libdir( const char *argv0, const char *env_name )
|
vips_guess_libdir( const char *argv0, const char *env_name )
|
||||||
{
|
{
|
||||||
const char *prefix = vips_guess_prefix( argv0, env_name );
|
const char *prefix = vips_guess_prefix( argv0, env_name );
|
||||||
static char *libdir = NULL;
|
static char *libdir = NULL;
|
||||||
|
|
||||||
|
char *suffix;
|
||||||
|
|
||||||
if( libdir )
|
if( libdir )
|
||||||
return( libdir );
|
return( libdir );
|
||||||
|
|
||||||
/* Have we been moved since configure? If not, use the configure-time
|
/* Have we been moved since configure? If not, use the configure-time
|
||||||
* libdir.
|
* libdir.
|
||||||
|
*
|
||||||
|
* The lib directory name can be eg. "lib", "lib64" etc. depending on
|
||||||
|
* the platform, so copy that from the configure-time libdir if we can.
|
||||||
*/
|
*/
|
||||||
if( strcmp( prefix, VIPS_PREFIX ) == 0 )
|
if( strcmp( prefix, VIPS_PREFIX ) == 0 )
|
||||||
libdir = VIPS_LIBDIR;
|
libdir = VIPS_LIBDIR;
|
||||||
else if ( strstr(VIPS_LIBDIR, "/lib64") )
|
else if( (suffix = strrchr( VIPS_LIBDIR, G_DIR_SEPARATOR )) )
|
||||||
libdir = g_strdup_printf( "%s/lib64", prefix );
|
libdir = g_strdup_printf( "%s%s", prefix, suffix );
|
||||||
else
|
else
|
||||||
libdir = g_strdup_printf( "%s/lib", prefix );
|
libdir = g_strdup_printf( "%s/lib", prefix );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user