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

Allow crosscompilation of apps using cargo buildscripts with pkg-config deps #11

Open
alejandro-rod opened this issue May 4, 2022 · 0 comments

Comments

@alejandro-rod
Copy link

For apps using buildscripts to compile gresources as explained here, the docker image won't be able to compile the buildscript because of the setting of PKG_CONFIG_PATH variable. In this case, the buildscript (which is supposed to be built and run natively) will try to link against mingw dependencies.
One possible solution that worked for me was setting TARGET_PKG_CONFIG_PATH environment var instead of PKG_CONFIG_PATH.
Reference: https://github.com/rust-lang/pkg-config-rs#external-configuration-via-target-scoped-environment-variables

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

No branches or pull requests

1 participant