meson: Use correct prefix for systemd_system_unit_dir

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

https://github.com/systemd/systemd/blob/059b1b31ade7f1d716f56c5e6fd657ce22ce2032/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 -1
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