[FFmpeg-devel] [PATCH] Extra build options for ALS (and others)

Måns Rullgård mans
Fri Nov 27 14:22:22 CET 2009


Thilo Borgmann <thilo.borgmann at googlemail.com> writes:

> Hi,
>
> recently the need for an extra build option for the ALS decoder arose.

Is it impossible to achieve the desired outcome with some combination
of always_inline, noinline, and flatten attributes?

> It seems like we are lacking a possibility for this or I have not found
> it... hints, discussion or better approaches welcome.
>
> The applied patch extends the implicit build rule for the object file,
> allowing to define extra compiler/linker/etc. options per file.

We've never had a need for this before, so there is no clean way of
doing it.  I'll have to think about how to do it properly, but first
answer the question above.

> Regards,
> Thilo
> Index: libavcodec/Makefile
> ===================================================================
> --- libavcodec/Makefile	(Revision 20627)
> +++ libavcodec/Makefile	(Arbeitskopie)
> @@ -%ld,%ld +%ld,%ld @@
>  SKIPHEADERS-$(CONFIG_VDPAU)            += vdpau.h
>  SKIPHEADERS-$(CONFIG_XVMC)             += xvmc.h
>
> +# extra build options
> +$(SUBDIR)alsdec.o: CFLAGS += -finline-limit=4096

This will break with many non-gcc compilers.

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



More information about the ffmpeg-devel mailing list