meson: Use correct prefix for systemd_system_unit_dir

systemd uses "rootprefix", not "prefix" for this value

059b1b31ad/src/core/systemd.pc.in (L23)
This commit is contained in:
Simon Arlott 2023-05-27 20:58:00 +01:00 committed by Max Kellermann
parent 42a01822bf
commit 561d6fd478
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ if systemd_system_unit_dir == ''
if systemd.found()
systemd_system_unit_dir = systemd.get_variable(
pkgconfig: 'systemdsystemunitdir',
pkgconfig_define: ['prefix', get_option('prefix')],
pkgconfig_define: ['rootprefix', get_option('prefix')],
)
endif
endif