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 <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-01-20 17:13:53 +00:00
parent 83d2fdb838
commit f5c74d2c80
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ accountsserviceinterfacesdir = join_paths(datadir, 'accountsservice', 'interface
# FIXME: pam.pc doesnt exist # FIXME: pam.pc doesnt exist
pamlibdir = get_option('pamlibdir') pamlibdir = get_option('pamlibdir')
if pamlibdir == '' if pamlibdir == ''
pamlibdir = join_paths(prefix, libdir.split('/')[-1], 'security') pamlibdir = join_paths(libdir, 'security')
endif endif
dbus = dependency('dbus-1') dbus = dependency('dbus-1')