[FFmpeg-devel] [PATCH] support per-file CFLAGS settings
Sun Oct 28 20:03:06 CET 2007
On Sunday 28 October 2007, Aurelien Jacobs wrote:
> Bernhard Rosenkraenzer wrote:
> > This patch adds support for adding per-file CFLAGS/LDFLAGS settings to
> > the ffmpeg build system.
> > I'm currently using it to work around compiler bugs (adding
> > "CFLAGS-algb.o = -O2" to libavcodec/Makefile, overriding the -O3 in use
> > for all other files, makes it compile on x86_64 with gcc 4.3),
> I see no libavcodec/algb.c file.
That's because I mistyped it - the right name is elbg.
The patch just adds the infrastructure for setting per-file compiler flags,
whether they're used as workarounds or something else. You'll see that the
CFLAGS-elbg.o = -O2 line isn't included in the patch, I just do that locally.
> If you experience a build failure, better try to fix it, or at least report
> it, instead of working around it.
I typically fix (or report, if I don't know enough about the source to fix it
quickly) things and work around it if that's much faster to do.
More information about the ffmpeg-devel