fix libdir directory guessing on windows
This commit is contained in:
parent
d07dee8b0c
commit
951e900a32
|
@ -1217,10 +1217,12 @@ vips_guess_libdir( const char *argv0, const char *env_name )
|
|||
*
|
||||
* 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.
|
||||
* The configure-time LIBDIR is generated by autotools and always uses
|
||||
* '/', even on Windows.
|
||||
*/
|
||||
if( strcmp( prefix, VIPS_PREFIX ) == 0 )
|
||||
libdir = VIPS_LIBDIR;
|
||||
else if( (suffix = strrchr( VIPS_LIBDIR, G_DIR_SEPARATOR )) )
|
||||
else if( (suffix = strrchr( VIPS_LIBDIR, '/' )) )
|
||||
libdir = g_strdup_printf( "%s%s", prefix, suffix );
|
||||
else
|
||||
libdir = g_strdup_printf( "%s/lib", prefix );
|
||||
|
|
Loading…
Reference in New Issue