[MPlayer-dev-eng] [PATCH] config.h from MPlayer clashes with config.h from x264

Vladislav Naumov vladislav.naumov at gmail.com
Sun Mar 18 09:21:47 CET 2007


config.h clashes with config.h from x264 when path to x264 includes is
passed via --with-extraincdir configure option.

This produces very confusing error messages (like multiple fseeko/ftello
in stdio.h).

Root of the problem is most source files just #include "config.h",
and hope that Makefile has a right order of directories in CFLAGS.
This is not the case with $(OPTFLAGS) - they add x264 dirs to the head
of the list of directories, before '-I.' (where correct config.h
resides).

Patch I've attached puts $(OPTFLAGS) after '-I.'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config_h_clash.diff
Type: text/x-patch
Size: 328 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070318/4cee0584/attachment.bin>


More information about the MPlayer-dev-eng mailing list