Skip to content

Support static libraries#1705

Open
willwwarner wants to merge 2 commits intogtk-rs:mainfrom
willwwarner:main
Open

Support static libraries#1705
willwwarner wants to merge 2 commits intogtk-rs:mainfrom
willwwarner:main

Conversation

@willwwarner
Copy link

This does what is necessary for static library bindings to work.
This is used by libgnome-games-support-rs.

@sdroege
Copy link
Member

sdroege commented Jan 25, 2026

This doesn't seem right to me. Even for static libraries, you want the -sys crate to "link" it so that the static library ends up being linked into the final build result.

This seems to be specific to how libgnome-games-support works, but I'm not sure what exactly that is. Can you explain the exact problems you're trying to solve here?

@willwwarner
Copy link
Author

willwwarner commented Jan 25, 2026

Can you explain the exact problems you're trying to solve here?

libgnome-gamers-support is a copylib, meaning its distribution is done by building it as meson subproject and statically linking it, instead of installing the library.

Even for static libraries, you want the -sys crate to "link" it so that the static library ends up being linked into the final build result.

Yes, I removed the linking step because I wanted to get my bindings to build without the subproject. I will fix that.

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