Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg-config .pc files: added .private versions of Libs and Required #667

Merged
merged 1 commit into from
Jan 14, 2018

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Jan 13, 2018

To prevent top-level linking of all libraries.

Problem: pkg-config --libs toxcore returns all libraries that are
required by all libtox*.so libraries. This is wrong because for a
dynamically linked executable only top-level libraries need to be
supplied. pkg-config --libs --static toxcore should return all
libraries for the statically linked executable.

For example, the ToxBot https://github.com/JFreegman/ToxBot executable
uses pkg-config and is linked with the opus library, which is wrong.

Based on #533.


This change is Reviewable

@jhert0
Copy link
Member

jhert0 commented Jan 13, 2018

:lgtm_strong:


Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

To prevent top-level linking of all libraries.

Problem: ```pkg-config --libs toxcore``` returns all libraries that are
required by all libtox*.so libraries. This is wrong because for a
dynamically linked executable only top-level libraries need to be
supplied. ```pkg-config --libs --static toxcore``` should return all
libraries for the statically linked executable.

For example, the ToxBot https://github.com/JFreegman/ToxBot executable
uses pkg-config and is linked with the opus library, which is wrong.

Based on TokTok#533.
@iphydf iphydf merged commit 1e1efec into TokTok:master Jan 14, 2018
@iphydf iphydf deleted the pkg-config-pc-files branch January 14, 2018 01:31
@iphydf iphydf modified the milestones: v0.2.0-RC1, v0.2.0 Jan 14, 2018
@iphydf
Copy link
Member Author

iphydf commented Jan 18, 2018

@yurivict this means the client build needs to know whether toxcore was built statically.

This pull request was closed.
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