I'm using pkg-config to cross compile a project to MIPS platform. As usual, I'm setting the PKG_CONFIG_PATH var to the target's platform suitable directory (in this case something like /usr/local/mips_sdk/usr/local/lib/pkgconfig, but it doesn't matter).
Strange is that pkg-config is using .pc files from /usr/local/lib/pkgconfig when they are not found in the path pointed by PKG_CONFIG_PATH var. It is like /usr/local/lib/pkgconfig is hardcoded in the search path of pkg-config.
It feels a little strange because it will try to link system libraries (x86) to my mips compiled stuff.
Does anyone knows how to solve it?
Thanks very much.