[FFmpeg-devel] [PATCH] Use pkgconfig for dirac libs

Måns Rullgård mans
Thu Oct 23 00:36:41 CEST 2008


flameeyes at gmail.com (Diego 'Flameeyes' Petten?) writes:

> M?ns Rullg?rd <mans at mansr.com> writes:
>
>> I admit that the dependencies of static libraries can be a problem.  I
>> still disagree that pkgconfig is anything resembling a solution.  A
>> much better solution would be to include a file listing the
>> dependencies *inside* the library archive.  The "ar" format used on
>> just about all systems allows arbitrary files to be included, and
>> linkers simply ignore files they do not recognise.  It would thus be a
>> simple matter to add support for such a dependency file to your
>> favourite linker, without worrying about breaking others (presumably
>> they would adopt the same feature if it became popular).
>
> *cough* you mean like libtool .la files? No thank you ;)

Not like that.  Not at all like that.  More like DT_NEEDED tags in ELF
shared libraries.  Libraries should only be concerned with *what* they
need, never *where* to get it.

>> Anything that needs installation-specific CFLAGS to work is broken by
>> design.  The only thing you could *ever* need to tell the compiler is
>> where to find the headers, and relying on pkgconfig to supply this
>> merely transforms the problem into that of finding the pkgconfig file
>> for the library (and hope you found the right one), so it's turtles
>> all the way down.
>
> Can we just agree we disagree on this point :)

Maybe you are too far gone to be saved, but I had to try my best.
I'll try one more time: what CFLAGS could you possibly need to pass
aside from a -I flag to indicate the location of the headers?

> I'll do my best to see that pkg-config support in Gentoo gets fixed
> by the way.

Thank you.

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list