From e84c7d825739db4e24c1bef107c1c234f6e37efd Mon Sep 17 00:00:00 2001 From: hasufell Date: Fri, 23 Aug 2013 07:53:38 +0200 Subject: imrove LIBDIR detection in binreloc use the LIBDIR we get from GNUInstallDirs module instead of this ifdef, it should be more robust and is distro dependant --- hardinfo/binreloc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'hardinfo') diff --git a/hardinfo/binreloc.c b/hardinfo/binreloc.c index 1d1acfe6..f47a3fae 100644 --- a/hardinfo/binreloc.c +++ b/hardinfo/binreloc.c @@ -593,11 +593,7 @@ gchar *gbr_find_lib_dir(const gchar * default_lib_dir) return NULL; } -#ifdef ARCH_x86_64 - dir = g_build_filename(prefix, "lib64", NULL); -#else - dir = g_build_filename(prefix, "lib", NULL); -#endif + dir = g_build_filename(prefix, LIBDIR, NULL); g_free(prefix); return dir; -- cgit v1.2.3