Handle cases where LIBDIR is not "lib"

For example, Fedora installs to lib64, Debian to lib/<arch-tuple>
This commit is contained in:
Rob Gowin
2017-12-01 12:53:17 -06:00
parent 0a8e50069c
commit 778b86e29e
9 changed files with 31 additions and 27 deletions

View File

@@ -33,6 +33,7 @@
#ifndef __BINRELOC_C__
#define __BINRELOC_C__
#include <config.h>
#include "gncla-dir.h"
#include <platform.h>
#if PLATFORM(WINDOWS)
@@ -548,7 +549,7 @@ gnc_gbr_find_lib_dir (const gchar *default_lib_dir)
return NULL;
}
dir = g_build_filename (prefix, "lib", NULL);
dir = g_build_filename (prefix, LIBDIR, NULL);
g_free (prefix);
return dir;
}