[FFmpeg-devel] Fix libx264

Nicolas George nicolas.george
Tue Feb 23 19:13:00 CET 2010


Le quintidi 5 vent?se, an CCXVIII, M?ns Rullg?rd a ?crit?:
> Yes, the compiler is part of the build environment.

Well, .pc files are too. If you use a different compiler, you have to use
different .pc files, that's all.

> POSIX standardises a few common compiler flags (-I, -L, etc.), and
> pretty much all relevant compilers support these.
> 
> You are proposing to _intentionally_ break compatibility between
> compilers where no issue would exist absent pkg-config.

I am not proposing to break anything.

There are pretty common compilers/build environments that requires
non-standard flags to work, especially with threads but not only (sockets on
Solaris anyone?). They do not respect the standard, that's too bad, but they
exist and people use them, that's a fact.

pkg-config is an attempt to solve the problem caused by these compilers that
requires non-standard flags. It is not perfect, it has limitations, but at
the very least it works better than nothing in the default case.

And of course, one of its limitations is that it is bound to one compiler. I
do not know how you would expect it to magically guess the options for
others compilers.

If you have suggestions on how something better than pkg-config can be
implemented, I would really like to hear them.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100223/fbf89cab/attachment.pgp>



More information about the ffmpeg-devel mailing list