Re: [xslt] Private libraries incorrectly passed to command line when linking dynamically
- From: Nick Wellnhofer <wellnhofer aevum de>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] Private libraries incorrectly passed to command line when linking dynamically
- Date: Thu, 27 Jun 2019 11:28:05 +0200
These patches seem to rely on your patched version of xml2-config, so we
should get your xml2-config changes upstreamed first.
Nick
On 26/06/2019 13:51, Hugh McMaster via xslt wrote:
Hi,
libxslt.pc, libexslt.pc and xslt-config all incorrectly pass private
library dependencies (such as libm and libgcrypt) to the command line
when linking dynamically. This causes un-necessary dependencies to be
created.
For many years, Debian has patched libxslt to avoid this problem. In
libxslt's pkg-config files, M_LIBS and LIBGCRYPT_LIBS are moved to the
Libs.private field, where they will only be passed to the command line
if --static is passed to pkg-config.
In xslt-config, Debian patches the source to add a new switch,
--static, which combines with --libs to output the dependencies
required for static linking. Private dependencies are not passed to
the command line when --libs is invoked as normal.
This problem was identified as still present when patching upstream
PHP 7.4 to use libxslt's pkg-config files.
Patches are available in a merge request #3 on Gitlab [1].
Regards,
Hugh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]