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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Jul 5 20:33:58 CEST 2012


On Thu, Jul 05, 2012 at 12:33:33PM +0200, Michael Niedermayer wrote:
> > >If you want to use the native pkg-config as a fallback then the
> > >code you add should check that PKG_CONFIG_LIBDIR is set. If if its not
> > >set it shouldnt use the native pkg-config
> > 
> > So only fall back if PKG_CONFIG_LIBDIR is not set?
> 
> if PKG_CONFIG_LIBDIR is set and no prefixed pkg-config is found then
> the hosts could probably be used safely otherwise no pkg-config
> should be used.
> above is IMHO and from a quick look at things, its not tested ...

As someone else pointed out: If we ever start using pkg-config to detect
host libraries (e.g. because we need them to calculate some hardcoded
tables at compile time) we will be breaking that feature badly.
It might be better to document a better solution (creating a script
that acts as a cross-pkg-config) and make sure its easy to find from
configure.
Another alternative is that we try creating such a script on the fly,
if it's possible to guess a suitable PKG_CONFIG_LIBDIR...


More information about the ffmpeg-devel mailing list