[FFmpeg-devel] [PATCH] support per-file CFLAGS settings

Måns Rullgård mans
Sun Oct 28 20:10:51 CET 2007


Bernhard Rosenkraenzer <bero at arklinux.org> writes:

> 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),
> but it can also be useful in other contexts (e.g. adding a
> -I/usr/include/someLibrary only for a file using that library, to
> prevent header file name clashes).

Does this bring any advantage over normal syntax supported by GNU
make?  Like this:

elbg.o: CFLAGS=-02

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




More information about the ffmpeg-devel mailing list