From ea48b6a482f4e85c967593fc8dc523e3d10a7067 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 15 Jun 2021 15:17:35 +0200 Subject: [PATCH] use /lib64 instead of /lib when needed --- libvips/iofuncs/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libvips/iofuncs/init.c b/libvips/iofuncs/init.c index 74f9cdd9..b7b9e8e0 100644 --- a/libvips/iofuncs/init.c +++ b/libvips/iofuncs/init.c @@ -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 );