mirror of https://github.com/microsoft/vcpkg.git
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
diff --git a/meson.build b/meson.build
|
|
index 22b3c96..3d50c83 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -996,6 +996,9 @@ threads = dependency('threads')
|
|
librt = cc.find_library('rt')
|
|
libm = cc.find_library('m')
|
|
libdl = cc.find_library('dl')
|
|
+conf.set_quoted('PC_RT', librt.found() ? '-lrt' : '')
|
|
+conf.set_quoted('PC_M', libm.found() ? '-lm' : '')
|
|
+conf.set_quoted('PC_DL', libdl.found() ? '-ldl' : '')
|
|
|
|
# On some distributions that use musl (e.g. Alpine), libintl.h may be provided by gettext rather than musl.
|
|
# In that case, we need to explicitly link with libintl.so.
|
|
diff --git a/src/libsystemd/libsystemd.pc.in b/src/libsystemd/libsystemd.pc.in
|
|
index 3a43ef6..930f16a 100644
|
|
--- a/src/libsystemd/libsystemd.pc.in
|
|
+++ b/src/libsystemd/libsystemd.pc.in
|
|
@@ -17,4 +17,6 @@ Description: systemd Library
|
|
URL: {{PROJECT_URL}}
|
|
Version: {{PROJECT_VERSION}}
|
|
Libs: -L${libdir} -lsystemd
|
|
+Libs.private: {{PC_DL}} {{PC_M}} {{PC_RT}}
|
|
+Requires.private: libcap libcrypt liblz4 liblzma libzstd mount
|
|
Cflags: -I${includedir}
|