~lattis/muon#91: 
idea: detect pkg_config path in static release

maybe could set the default pkg_config_path by running pkg-config --variable pc_path pkg-config on the system at runtime

Status
REPORTED
Submitter
~nei
Assigned to
No-one
Submitted
1 year, 9 months ago
Updated
1 year, 2 months ago
Labels
No labels applied.

Charadon 1 year, 2 months ago ยท edit

In theory, this should be easy to implement. The code in question is in src/external/libpkgconf.c at line 63. It should be as simple as calling the command suggested using with popen and copying it's output to the pkg_config_path string. Of course, this should only happen if the path isn't defined.

While I would love to contribute a patch, I don't really have the time to figure out the internals of muon.

Aside from that, the easiest work around is just to set up the PKG_CONFIG_PATH environment to use the value of |pkg-config --variable pc_path pkg-config. Like this: PKG_CONFIG_PATH="$(||pkg-config --variable pc_path pkg-config)"|

Register here or Log in to comment, or comment via email.