build-sys: Add new libsystemd-shared private library

Link as many binaries as possible with it, to save storage space.

Preserve the static libshared and libbasic for use in libraries, nss
modules and udev.

Libraries need to be static in order to avoid polluting the symbol
namespace.

Udev needs to be static so downstream can avoid strict version dependencies
with the systemd package, and this can complicate upgrade scenarios.
This commit is contained in:
Felipe Sateler 2016-06-24 22:14:25 -04:00
parent 8537a389b8
commit cc8b113e0b
2 changed files with 328 additions and 212 deletions

File diff suppressed because it is too large Load Diff

View File

@ -114,7 +114,7 @@ static void test_find_binary(const char *self) {
assert_se(find_binary(self, &p) == 0);
puts(p);
assert_se(endswith(p, "/test-path-util"));
assert_se(endswith(p, "/lt-test-path-util"));
assert_se(path_is_absolute(p));
free(p);