summaryrefslogtreecommitdiffstats
path: root/vips-lib64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vips-lib64.patch')
-rw-r--r--vips-lib64.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/vips-lib64.patch b/vips-lib64.patch
new file mode 100644
index 0000000..edcc88b
--- /dev/null
+++ b/vips-lib64.patch
@@ -0,0 +1,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 );
+