[FFmpeg-devel] [PATCH] Fix pkg-config detection when using a cross-prefix

Kyle Schwarz kshawkeye at gmail.com
Mon Jul 2 21:22:48 CEST 2012

On 7/2/2012 2:52 PM, Mike Scheutzow wrote:
> Kyle Schwarz wrote:
>> As long as the PKG_CONFIG_PATH is set properly the host system libs
>> will not be used.
> Not true according to the man page on my linux system.
> If you invoke the host's /usr/bin/pkg-config, it's going to search
> /usr/lib/pkgconfig/ after searching the dirs in PKG_CONFIG_PATH.
> It could definitely find a host library, which would be very confusing.

Why would it find a host library if it already found what it needs in 
the PKG_CONFIG_PATH? It will finish searching for what it's trying to 
find after it finds it.

> I think this patch is a bad idea.

This patch is safe, I can assure you. As I've said before all the users 
are already using hacks to get around FFmpeg's configure. This patch 
makes it easier for users.

Why not apply it and if you get a bug report, then revert it? How else 
am I going to be able to prove that its an helpful and not hurtful?

More information about the ffmpeg-devel mailing list