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:
parent
83d2fdb838
commit
f5c74d2c80
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue