Skip to content

pkgconfig: drop unused libraries from Libs.private#1591

Merged
rouault merged 1 commit intouclouvain:masterfrom
bgilbert:pkg-config
Sep 20, 2025
Merged

pkgconfig: drop unused libraries from Libs.private#1591
rouault merged 1 commit intouclouvain:masterfrom
bgilbert:pkg-config

Conversation

@bgilbert
Copy link
Copy Markdown
Contributor

Generate pkg-config Libs.private from the actual dependencies linked into our libraries, rather than hardcoding static lists, to avoid overlinking of library users when pkg-config is invoked with --static. libopenjpip doesn't actually link with libcurl, libfcgi, or libpthread, and neither of our libraries links with libm on Windows (which doesn't have libm).

@bgilbert bgilbert marked this pull request as draft July 25, 2025 06:44
Generate pkg-config Libs.private from the actual dependencies linked into
our libraries, rather than hardcoding static lists, to avoid overlinking
of library users when pkg-config is invoked with --static.  libopenjpip
doesn't actually link with libcurl, libfcgi, or libpthread, and neither
of our libraries links with libm on Windows (which doesn't have libm).
@bgilbert bgilbert marked this pull request as ready for review July 25, 2025 06:56
@rouault rouault added this to the 2.5.4 milestone Sep 20, 2025
@rouault rouault merged commit 0912a30 into uclouvain:master Sep 20, 2025
1 check passed
@bgilbert bgilbert deleted the pkg-config branch September 20, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants