[FFmpeg-devel] [PATCH] Use pkg-config for libschroedinger libs

Måns Rullgård mans
Mon May 12 19:32:34 CEST 2008


Uoti Urpala <uoti.urpala at pp1.inet.fi> writes:

> On Mon, 2008-05-12 at 18:32 +0200, Reimar D?ffinger wrote:
>> On Mon, May 12, 2008 at 05:13:04PM +0100, Ramiro Polla wrote:
>> > >>>> also pkg-config is used in the line above for cflags,
>> > > That's irrelevant.  As long as pkg-config isn't mandated by
>> > > POSIX, we should assume it might not be there.
>> > 
>> > We should get rid of memalign() too. After all, it's not POSIX...
>> 
>> Huh? FFmpeg already works without memalign. And there is even a hack
>> that allows even the assembler optimizations to work without it.
>
> And posix_memalign is POSIX.

posix_memalign is part of the optional real-time extensions.

>> So to me it seems your example actually confirms Mans' opinion?
>
> IMO M?ns is wrong. libschroedinger is not a part of POSIX and using its
> API requires the presence of additional files beyond POSIX in any case.
> If that includes not only .h files but also .pc files and pkg-config
> there's nothing wrong with that.

Yes, there is.  Virtually all packages that use pkg-config could be
fix to not need it.  Encouraging its use is foolish at best, and
quite possibly harmful.  It comes from the same kind of thinking that
spawned autoconf/automake.

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




More information about the ffmpeg-devel mailing list