[FFmpeg-devel] [PATCH] Use pkgconfig for dirac libs
Thu Oct 23 00:42:50 CEST 2008
Peter Ross <pross at xvid.org> writes:
> On Wed, Oct 22, 2008 at 10:56:11AM +0100, M?ns Rullg?rd wrote:
>> Luca Barbato wrote:
>> > On 22-10-2008 1:23, M?ns Rullg?rd wrote:
>> >> Use of pkgconfig is discouraged; it creates more problems than it
>> >> solves, especially when cross-compiling.
>> > How so?
>> It tries to link with /usr/lib/libfoo.so instead of
>> /usr/arm-unknown-linux-gnueabi/usr/lib/libfoo.so. I'm sure you
>> understand why that doesn't work too well.
> FFS, read the manpage!
And then fix *EVERY* f*cking package I want to build?
> You need to tell pkg-config where the cross compile target .pc files
> are located. e.g.
> PKG_CONFIG_LIBDIR=/usr/i586-mingw32msvc/lib/pkgconfig \
> ./configure --cross-prefix=i586-mingw32msvc- --target-os=mingw32 --arch=i586
FFS, read my emails again. For the record, here's my
unset PKG_CONFIG_PATH PKG_CONFIG_ALLOW_SYSTEM_CFLAGS PKG_CONFIG_ALLOW_SYSTEM_LIBS
exec pkg-config "$@"
That is what the Gentoo cross-compiling instructions told me to put in
How many times do I have to repeat myself? It FINDS THE CORRECT .pc
FILES. It is THE CONTENT OF THESE FILES that is a LIE. If it
bothered, pkg-config *could* fix it by prepending the sysroot, but IT
DOESN'T. Is that so god damned difficult to understand?
mans at mansr.com
More information about the ffmpeg-devel