From: Yu Watanabe Date: Sun, 22 Jul 2018 14:25:07 +0000 (+0900) Subject: meson: do not build module-util.c when libkmod is not found X-Git-Tag: v240~928 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba323bbead1dda558a5bbe42846cdee5c8b0fc85;p=thirdparty%2Fsystemd.git meson: do not build module-util.c when libkmod is not found Follow-up for 3cb9b42af3b205fba176ebf51ce0e07739698278 (#9516). Fixes oss-fuzz-9532. --- diff --git a/src/shared/meson.build b/src/shared/meson.build index 9c80f2b8553..cb1d43c8280 100644 --- a/src/shared/meson.build +++ b/src/shared/meson.build @@ -64,7 +64,6 @@ shared_sources = files(''' machine-pool.c machine-pool.h module-util.h - module-util.c nsflags.c nsflags.h output-mode.c @@ -125,6 +124,10 @@ if conf.get('HAVE_LIBIPTC') == 1 shared_sources += files('firewall-util.c') endif +if conf.get('HAVE_KMOD') == 1 + shared_sources += files('module-util.c') +endif + libshared_name = 'systemd-shared-@0@'.format(meson.project_version()) libshared_deps = [threads,