mirror of https://git.ffmpeg.org/ffmpeg.git
configure: Pass CFLAGS_HEADERS through the right CFLAGS filter
The generic parameter names used for CFLAGS in configure must be filtered for each compiler and replaced by the equivalent flag for that compiler.
This commit is contained in:
parent
9265364bec
commit
404cb74793
|
@ -716,6 +716,10 @@ add_cflags(){
|
||||||
append CFLAGS $($cflags_filter "$@")
|
append CFLAGS $($cflags_filter "$@")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_cflags_headers(){
|
||||||
|
append CFLAGS_HEADERS $($cflags_filter "$@")
|
||||||
|
}
|
||||||
|
|
||||||
add_asflags(){
|
add_asflags(){
|
||||||
append ASFLAGS $($asflags_filter "$@")
|
append ASFLAGS $($asflags_filter "$@")
|
||||||
}
|
}
|
||||||
|
@ -4834,7 +4838,7 @@ check_disable_warning -Wno-pointer-sign
|
||||||
|
|
||||||
check_disable_warning_headers(){
|
check_disable_warning_headers(){
|
||||||
warning_flag=-W${1#-Wno-}
|
warning_flag=-W${1#-Wno-}
|
||||||
test_cflags $warning_flag && append cflags_headers $1
|
test_cflags $warning_flag && add_cflags_headers $1
|
||||||
}
|
}
|
||||||
|
|
||||||
check_disable_warning_headers -Wno-deprecated-declarations
|
check_disable_warning_headers -Wno-deprecated-declarations
|
||||||
|
@ -5298,7 +5302,7 @@ TARGET_EXEC=$target_exec $target_exec_args
|
||||||
TARGET_PATH=$target_path
|
TARGET_PATH=$target_path
|
||||||
TARGET_SAMPLES=${target_samples:-\$(SAMPLES)}
|
TARGET_SAMPLES=${target_samples:-\$(SAMPLES)}
|
||||||
CFLAGS-avplay=$sdl_cflags
|
CFLAGS-avplay=$sdl_cflags
|
||||||
CFLAGS_HEADERS=$cflags_headers
|
CFLAGS_HEADERS=$CFLAGS_HEADERS
|
||||||
ZLIB=$($ldflags_filter -lz)
|
ZLIB=$($ldflags_filter -lz)
|
||||||
LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD
|
LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD
|
||||||
EXTRALIBS=$extralibs
|
EXTRALIBS=$extralibs
|
||||||
|
|
Loading…
Reference in New Issue