summaryrefslogtreecommitdiffstats
path: root/vips-lib64.patch
blob: edcc88b9fa80e3cf6273a8b02a9a6e667a21d686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From ea48b6a482f4e85c967593fc8dc523e3d10a7067 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
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 74f9cdd93..b7b9e8e0b 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 );