Skip to content

Add Libs.private to autoconf libpsl.pc#246

Merged
rockdaboot merged 1 commit intorockdaboot:masterfrom
alyssais:Libs.private
May 9, 2024
Merged

Add Libs.private to autoconf libpsl.pc#246
rockdaboot merged 1 commit intorockdaboot:masterfrom
alyssais:Libs.private

Conversation

@alyssais
Copy link
Copy Markdown
Contributor

@alyssais alyssais commented May 6, 2024

Static libraries don't include dependency information, so when using pkg-config to find out how to link with a static library, the .pc file for that library has to specify what other libraries to link. Libs.private is like Libs, except it's only used when static linking. This fixes linking against a static libpsl using pkg-config.

The Meson-generated libpsl.pc just includes all of its dependent libraries in Libs, so doesn't require any additional fix.

Copy link
Copy Markdown
Collaborator

@eli-schwartz eli-schwartz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

I would personally reorganize it so the two Libs lines are together but that's just a nit.

Static libraries don't include dependency information, so when using
pkg-config to find out how to link with a static library, the .pc file
for that library has to specify what other libraries to link.
Libs.private is like Libs, except it's only used when static linking.
This fixes linking against a static libpsl using pkg-config.

The Meson-generated libpsl.pc just includes all of its dependent
libraries in Libs, so doesn't require any additional fix.
@rockdaboot rockdaboot merged commit 490bd6f into rockdaboot:master May 9, 2024
@alyssais alyssais deleted the Libs.private branch May 14, 2024 10:03
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.

3 participants