diff --git a/meson.build b/meson.build index 11b73bcb19..9dabf342d2 100644 --- a/meson.build +++ b/meson.build @@ -1258,7 +1258,7 @@ libjournal_core = static_library( libsystemd_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libsystemd_sym) libsystemd = shared_library( 'systemd', - libsystemd_internal_sources, + libsystemd_sources, journal_internal_sources, version : libsystemd_version, include_directories : includes, @@ -1338,7 +1338,7 @@ foreach tuple : [['myhostname', 'ENABLE_MYHOSTNAME'], '-shared', '-Wl,--version-script=' + version_script_arg, '-Wl,--undefined'], - link_with : [libsystemd_internal, + link_with : [libsystemd_static, libbasic], dependencies : [threads, librt], @@ -1576,7 +1576,7 @@ if conf.get('ENABLE_LOGIND') == 1 include_directories : includes, link_args : ['-shared', '-Wl,--version-script=' + version_script_arg], - link_with : [libsystemd_internal, + link_with : [libsystemd_static, libshared_static], dependencies : [threads, libpam, diff --git a/src/libsystemd/meson.build b/src/libsystemd/meson.build index 4abf50b111..b305af159c 100644 --- a/src/libsystemd/meson.build +++ b/src/libsystemd/meson.build @@ -17,7 +17,7 @@ sd_login_c = files('sd-login/sd-login.c') -libsystemd_internal_sources = files(''' +libsystemd_sources = files(''' sd-bus/bus-bloom.c sd-bus/bus-bloom.h sd-bus/bus-common-errors.c @@ -93,9 +93,9 @@ libsystemd_internal_sources = files(''' sd-utf8/sd-utf8.c '''.split()) + sd_login_c -libsystemd_internal = static_library( +libsystemd_static = static_library( 'systemd', - libsystemd_internal_sources, + libsystemd_sources, install : false, include_directories : includes, link_with : libbasic, diff --git a/src/libudev/meson.build b/src/libudev/meson.build index 30d6721b60..09cf762c27 100644 --- a/src/libudev/meson.build +++ b/src/libudev/meson.build @@ -41,7 +41,7 @@ libudev = shared_library( link_args : ['-shared', '-Wl,--version-script=' + libudev_sym_path], link_with : [libbasic, - libsystemd_internal], + libsystemd_static], dependencies : [threads], link_depends : libudev_sym, install : true, diff --git a/src/shared/meson.build b/src/shared/meson.build index 06a944c49d..4620eaa007 100644 --- a/src/shared/meson.build +++ b/src/shared/meson.build @@ -164,7 +164,7 @@ libshared = shared_library( shared_sources, basic_sources, journal_internal_sources, - libsystemd_internal_sources, + libsystemd_sources, libudev_sources, include_directories : includes, link_args : ['-shared', diff --git a/src/test/meson.build b/src/test/meson.build index 6bb5bd629e..dcec53fa51 100644 --- a/src/test/meson.build +++ b/src/test/meson.build @@ -67,7 +67,7 @@ tests += [ 'src/test/test-helper.c'], [libcore, libudev, - libsystemd_internal], + libsystemd_static], [threads, librt, libseccomp, @@ -772,7 +772,7 @@ tests += [ [['src/libsystemd/sd-bus/test-bus-error.c'], [libshared_static, - libsystemd_internal], + libsystemd_static], []], [['src/libsystemd/sd-bus/test-bus-track.c'], diff --git a/src/udev/meson.build b/src/udev/meson.build index 3b2c7b5e12..fc06d6f85a 100644 --- a/src/udev/meson.build +++ b/src/udev/meson.build @@ -113,7 +113,7 @@ if get_option('link-udev-shared') udev_rpath = rootlibexecdir else udev_link_with = [libshared_static, - libsystemd_internal] + libsystemd_static] udev_rpath = '' endif