meson: link libsystemd_static in libshared instead of recompiling
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 Dec 2017 18:14:03 +0000 (19:14 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Jan 2018 11:09:46 +0000 (12:09 +0100)
This is similar to the great-grandpa commit. This time the number
of meson targets compilation without man is reduced from 1347 to 1302.

src/libsystemd/meson.build
src/shared/meson.build

index b305af1..9eb5a91 100644 (file)
@@ -100,7 +100,8 @@ libsystemd_static = static_library(
         include_directories : includes,
         link_with : libbasic,
         dependencies : [threads,
-                        librt])
+                        librt],
+        c_args : ['-fvisibility=default'])
 
 libsystemd_sym = 'src/libsystemd/libsystemd.sym'
 
index 7402e75..5fa863a 100644 (file)
@@ -167,14 +167,14 @@ libshared_static = static_library(
 libshared = shared_library(
         libshared_name,
         journal_internal_sources,
-        libsystemd_sources,
         libudev_sources,
         include_directories : includes,
         link_args : ['-shared',
                      '-Wl,--version-script=' + libshared_sym_path],
         link_whole : [libshared_static,
                       libbasic,
-                      libbasic_gcrypt],
+                      libbasic_gcrypt,
+                      libsystemd_static],
         c_args : ['-fvisibility=default'],
         dependencies : libshared_deps,
         install : true,