meson: add a single .h file to shared libs with no sources

Otherwise stuff doesn't build on old Ubuntu with meson-0.42.1-1~xenial.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-12-20 09:12:08 +01:00
parent 568a4ff8b1
commit 7f1ea2cc94
2 changed files with 2 additions and 0 deletions

View File

@ -1254,6 +1254,7 @@ libjournal_core = static_library(
libsystemd_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libsystemd_sym)
libsystemd = shared_library(
'systemd',
'src/systemd/sd-id128.h', # pick a header file at random to work around old meson bug
version : libsystemd_version,
include_directories : includes,
link_args : ['-shared',

View File

@ -132,6 +132,7 @@ libudev_static = static_library(
libudev = shared_library(
'udev',
'udev.h', # pick a header file at random to work around old meson bug
version : libudev_version,
include_directories : includes,
link_args : ['-shared',