diff options
author | Alexander Traud <pabstraud@compuserve.com> | 2021-11-09 15:27:50 +0000 |
---|---|---|
committer | Alexander Traud <pabstraud@compuserve.com> | 2021-11-11 07:55:49 +0100 |
commit | 18908025a88086382084ffe6b37a4ee1b8152622 (patch) | |
tree | 37ad6a0de49f09e807d36dcf6ece25c76d5567c8 | |
parent | 7b07684ea6698d4885ff2062350ad8798a04de42 (diff) |
Adjust .pc file to avoid over-linking with GLib
glib.h is used in the public header. However, the public headers do not
require any function in Glib library, just its headers. This cannot
be handled automatically by Meson so we need to explicitly tell
the GLib dependency in the .pc file. Use Requires.private to avoid
libraries using libcacard to have a direct dependency to GLib.
The crypto library NSS is already handled automatically by Meson using
dependencies in library so remove it from .pc file.
This undos part of commit 2d273ec9
Signed-off-by: Alexander Traud <pabstraud@compuserve.com>
-rw-r--r-- | meson.build | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 9cfe248..8209a7f 100644 --- a/meson.build +++ b/meson.build @@ -85,8 +85,7 @@ configure_file( pc = import('pkgconfig') pc.generate( libraries: libcacard, - requires: ['glib-2.0'], - requires_private: ['nss'], + requires_private: ['glib-2.0'], subdirs: 'cacard', version: meson.project_version(), name: 'cacard', |