meson: use correct prefix for systemd dirs
See https://www.bassi.io/articles/2018/03/15/pkg-config-and-paths/ Fixes the build in nixpkgs
This commit is contained in:
parent
d9b1f6223e
commit
838af929a0
@ -2,7 +2,10 @@ systemd_system_unit_dir = get_option('systemd_system_unit_dir')
|
|||||||
if systemd_system_unit_dir == ''
|
if systemd_system_unit_dir == ''
|
||||||
systemd = dependency('systemd', required: false)
|
systemd = dependency('systemd', required: false)
|
||||||
if systemd.found()
|
if systemd.found()
|
||||||
systemd_system_unit_dir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir')
|
systemd_system_unit_dir = systemd.get_variable(
|
||||||
|
pkgconfig: 'systemdsystemunitdir',
|
||||||
|
pkgconfig_define: ['prefix', get_option('prefix')],
|
||||||
|
)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if systemd_system_unit_dir == ''
|
if systemd_system_unit_dir == ''
|
||||||
|
@ -2,7 +2,10 @@ systemd_user_unit_dir = get_option('systemd_user_unit_dir')
|
|||||||
if systemd_user_unit_dir == ''
|
if systemd_user_unit_dir == ''
|
||||||
systemd = dependency('systemd', required: false)
|
systemd = dependency('systemd', required: false)
|
||||||
if systemd.found()
|
if systemd.found()
|
||||||
systemd_user_unit_dir = systemd.get_variable(pkgconfig: 'systemduserunitdir')
|
systemd_user_unit_dir = systemd.get_variable(
|
||||||
|
pkgconfig: 'systemduserunitdir',
|
||||||
|
pkgconfig_define: ['prefix', get_option('prefix')],
|
||||||
|
)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if systemd_user_unit_dir == ''
|
if systemd_user_unit_dir == ''
|
||||||
|
Loading…
Reference in New Issue
Block a user