Merge pull request #2308 from remicollet/issue-lib64

use /lib64 instead of /lib when needed
This commit is contained in:
John Cupitt 2021-06-18 11:51:12 +01:00 committed by GitHub
commit ed035670b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1226,6 +1226,8 @@ vips_guess_libdir( const char *argv0, const char *env_name )
*/
if( strcmp( prefix, VIPS_PREFIX ) == 0 )
libdir = VIPS_LIBDIR;
else if ( strstr(VIPS_LIBDIR, "/lib64") )
libdir = g_strdup_printf( "%s/lib64", prefix );
else
libdir = g_strdup_printf( "%s/lib", prefix );