1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

configure: Split test_cflags function off from check_cflags

This is useful to test flags without directly adding them to CFLAGS.
This commit is contained in:
Diego Biurrun 2013-10-31 19:48:59 +01:00
parent d1c229cdbc
commit 23157d72b5

11
configure vendored
View File

@ -779,14 +779,19 @@ int x;
EOF
}
check_cflags(){
log check_cflags "$@"
test_cflags(){
log test_cflags "$@"
set -- $($cflags_filter "$@")
check_cc "$@" <<EOF && append CFLAGS "$@"
check_cc "$@" <<EOF
int x;
EOF
}
check_cflags(){
log check_cflags "$@"
test_cflags "$@" && add_cflags "$@"
}
test_ldflags(){
log test_ldflags "$@"
check_ld "$@" <<EOF