When pkg-config is being used in a cross-compiling environment, it's useful to be able to have it automatically prepend the path to the cross tree (usually something like "/usr/arm-linux") onto the filenames it generates. This patch adds a new environment variable which can be used for that.
Created attachment 79 [details] [review] patch
If you build current pkg-config with --prefix=/usr/arm-linux, it will look in /usr/arm-linux/lib/pkgconfig and /usr/arm-linux/share/pkgconfig for the .pc files. (If you want another path, you can use --with-pc-path=$foo:$bar:$baz to specify. I am going to provide more cross-compilation support, but this should satisfy you for now.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.