@@ -1371,16 +1371,19 @@ conf.set10('HAVE_BZIP2', libbzip2.found())
1371
1371
libxz = dependency (' liblzma' ,
1372
1372
required : get_option (' xz' ))
1373
1373
conf.set10(' HAVE_XZ' , libxz.found())
1374
+ libxz_cflags = libxz.partial_dependency(includes : true , compile_args : true )
1374
1375
1375
1376
liblz4 = dependency (' liblz4' ,
1376
1377
version : ' >= 1.3.0' ,
1377
1378
required : get_option (' lz4' ))
1378
1379
conf.set10(' HAVE_LZ4' , liblz4.found())
1380
+ liblz4_cflags = liblz4.partial_dependency(includes : true , compile_args : true )
1379
1381
1380
1382
libzstd = dependency (' libzstd' ,
1381
1383
version : ' >= 1.4.0' ,
1382
1384
required : get_option (' zstd' ))
1383
1385
conf.set10(' HAVE_ZSTD' , libzstd.found())
1386
+ libzstd_cflags = libzstd.partial_dependency(includes : true , compile_args : true )
1384
1387
1385
1388
conf.set10(' HAVE_COMPRESSION' , libxz.found() or liblz4.found() or libzstd.found())
1386
1389
@@ -1951,8 +1954,7 @@ libsystemd = shared_library(
1951
1954
link_args : [' -shared' ,
1952
1955
' -Wl,--version-script=' + libsystemd_sym_path],
1953
1956
link_with : [libbasic,
1954
- libbasic_gcrypt,
1955
- libbasic_compress],
1957
+ libbasic_gcrypt],
1956
1958
link_whole : [libsystemd_static],
1957
1959
dependencies : [librt,
1958
1960
threads,
@@ -1969,7 +1971,6 @@ install_libsystemd_static = static_library(
1969
1971
libsystemd_sources,
1970
1972
basic_sources,
1971
1973
basic_gcrypt_sources,
1972
- basic_compress_sources,
1973
1974
fundamental_sources,
1974
1975
include_directories : libsystemd_includes,
1975
1976
build_by_default : static_libsystemd != ' false' ,
@@ -1981,12 +1982,12 @@ install_libsystemd_static = static_library(
1981
1982
libcap,
1982
1983
libdl,
1983
1984
libgcrypt,
1984
- liblz4 ,
1985
+ liblz4_cflags ,
1985
1986
libmount,
1986
1987
libopenssl,
1987
1988
librt,
1988
- libxz ,
1989
- libzstd ,
1989
+ libxz_cflags ,
1990
+ libzstd_cflags ,
1990
1991
threads,
1991
1992
userspace],
1992
1993
c_args : libsystemd_c_args + (static_libsystemd_pic ? [] : [' -fno-PIC' ]))
0 commit comments