From f5c74d2c8025e693953bc220419685b86db6a1d5 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 20 Jan 2020 17:13:53 +0000 Subject: [PATCH] build: Fix default value of pamlibdir The previous version only worked on Fedora-like distributions which have `libdir = /usr/lib{,64}`. On multi-arch Debian systems, it would calculate `pamlibdir = /usr/x86_64-linux-gnu/security` which is not right. Signed-off-by: Philip Withnall --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 1e37a5a..3907058 100644 --- a/meson.build +++ b/meson.build @@ -29,7 +29,7 @@ accountsserviceinterfacesdir = join_paths(datadir, 'accountsservice', 'interface # FIXME: pam.pc doesn’t exist pamlibdir = get_option('pamlibdir') if pamlibdir == '' - pamlibdir = join_paths(prefix, libdir.split('/')[-1], 'security') + pamlibdir = join_paths(libdir, 'security') endif dbus = dependency('dbus-1')