Enabling libcrypsetup in libmount had several unintended side effects. First of all, it increases the Debian minimal image size by ~2.5% (5.6MB worth of new libraries). Then, due to libcryptsetup linkage to OpenSSL and libjson-c, it causes incompatibilities with external programs linking against both libmount and a private, static, old version of OpenSSL, or external programs linking against libjansson or json-glib, which have one symbol in common with libjson-c. If ./configure is ran with --with-crypsetup=dlopen, instead of linking to libcrypsetup, use dlopen to resolve the symbols at runtime only when the verity feature is used, thus avoiding clashes and keeping images size down. Fixes #1081 Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
23 lines
709 B
PkgConfig
23 lines
709 B
PkgConfig
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
# This file is part of libmount from util-linux project.
|
|
#
|
|
# Copyright (C) 2008-2018 Karel Zak <kzak@redhat.com>
|
|
#
|
|
# libmount is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
libdir=@usrlib_execdir@
|
|
includedir=@includedir@
|
|
|
|
Name: mount
|
|
Description: mount library
|
|
Version: @LIBMOUNT_VERSION@
|
|
Requires.private: blkid @LIBSELINUX@ @LIBCRYPTSETUP@
|
|
Cflags: -I${includedir}/libmount
|
|
Libs: -L${libdir} -lmount
|
|
Libs.private: @LIBDL@
|