diff --git a/src/systemd/meson.build b/src/systemd/meson.build index 088dd432f0..4f57809107 100644 --- a/src/systemd/meson.build +++ b/src/systemd/meson.build @@ -68,7 +68,8 @@ endif foreach header : _systemd_headers + _not_installed_headers + ['../libudev/libudev.h'] foreach opt : opts - name = ''.join(['cc-', header.split('/')[-1], '_'] + opt) + std_name = opt.length() == 2 ? '_'.join(opt[1].split(':')) : '' + name = ''.join(['cc-', header.split('/')[-1], '_', opt[0], std_name]) if want_tests != 'false' test(name, check_compilation_sh,