[FFmpeg-user] --extra-cflags postpend

Roger Pack rogerdpack2 at gmail.com
Mon Aug 24 22:27:47 CEST 2015


I noticed today:

If I configure ffmpeg like
./configure --extra-cflags=-fno-omit-frame-pointer, my parameter is
basically "ignored" at build time by other later parameters, viz:

$make libavdevice/dshow.o V=1

gcc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1
-D__printf__=__gnu_printf__ -DZLIB_CONST -DDEBUG -DHAVE_AV_CONFIG_H
-O0 -fno-omit-frame-pointer -std=c99 -fomit-frame-pointer -g3
-Wdeclaration-after-statement -Wall -Wdisabled-optimization
-Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits
-Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast
-Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch
-Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno
-fno-signed-zeros -fno-tree-vectorize -Werror=format-security
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto
-Wno-maybe-uninitialized  -MMD -MF libavdevice/dshow.d -MT
libavdevice/dshow.o -c -o libavdevice/dshow.o libavdevice/dshow.c

Notice that it is overridden by a later "-fomit-frame-pointer".  It
seems there's no configure parameter that allows me to postpend
options, anyway my suggestion/feature request would be that
"--extra-cflags" be somehow postpended instead of what they are now.
Cheers!


More information about the ffmpeg-user mailing list