Skip to content

Split libpkl libraries between shared and static libs - #1812

Open
bioball wants to merge 9 commits into
apple:mainfrom
bioball:static-pkg-config
Open

Split libpkl libraries between shared and static libs#1812
bioball wants to merge 9 commits into
apple:mainfrom
bioball:static-pkg-config

Conversation

@bioball

@bioball bioball commented Aug 5, 2026

Copy link
Copy Markdown
Member

This adds a libpkl-static.pc so pkg-config users can link either statically or dynamically via pkg-config --libs libpkl, or pkg-config --libs libpkl-static.

Additionally, this fixes an issue where the replace tokens wasn't doing anything, leaving the @version@ token intact in the archive.

[native-libpkl]

bioball added 6 commits August 5, 2026 11:45
This adds a `libpkl-static.pc` so pkg-config users can link either
statically or dynamically via `pkg-config --libs libpkl`, or
`pkg-config --libs libpkl-static`.

Additionally, this fixes an issue where the replace tokens wasn't
doing anything, leaving the `@version@` token intact in the archive.

This also changes the format of the archive to put the static lib
in its own subdirectory, and the shared lib in its own subdirectory.
├── lib
│ ├── libpkl.<shared library extension>
│ ├── libpkl.<static library extension>
│ ├── libpkl.<dynamic library extension>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Unrelated: standardize on "shared library" instead of "dynamic library"

@stackoverflow stackoverflow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment thread docs/modules/libpkl/pages/index.adoc Outdated
Comment thread docs/modules/libpkl/pages/index.adoc Outdated
Comment thread docs/modules/libpkl/pages/index.adoc Outdated
bioball and others added 2 commits August 6, 2026 12:58
Co-authored-by: Islon Scherer <islonscherer@gmail.com>
@bioball
bioball enabled auto-merge (squash) August 6, 2026 20:27
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