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

Use pkg-config instead of manual -lvlc #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xaionaro
Copy link

@xaionaro xaionaro commented Oct 18, 2024

Summary

pkg-config is usually more aware of how exactly something should be linked, which may vary for different systems/environments.

To make the solution more universal using pkg-config instead of manual flag -lvlc.

Here is an example of another project which already uses this approach: https://github.com/asticode/go-astiav

More specifically, see: https://github.com/asticode/go-astiav/blob/cd2a16de95f911b69a9187708abe58d2c89b4390/astiav.go

Initial motivation

I needed this change because I'm trying to link all the dependencies in one of my projects statically. I was able to hack around this for the go-astiav via manipulating pkg-config, but for this project I had to add this change.

pkg-config is usually more aware of how exactly something should
be linked, which may vary for different systems/environments.

To make the solution more universal using pkg-config instead of
manual flag `-lvlc`.

Here is an example of another project which already uses this approach:

	https://github.com/asticode/go-astiav

More specifically, see:

	https://github.com/asticode/go-astiav/blob/cd2a16de95f911b69a9187708abe58d2c89b4390/astiav.go
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.

1 participant