mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 20:37:04 +00: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:
parent
d1c229cdbc
commit
23157d72b5
11
configure
vendored
11
configure
vendored
@ -779,14 +779,19 @@ int x;
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
check_cflags(){
|
test_cflags(){
|
||||||
log check_cflags "$@"
|
log test_cflags "$@"
|
||||||
set -- $($cflags_filter "$@")
|
set -- $($cflags_filter "$@")
|
||||||
check_cc "$@" <<EOF && append CFLAGS "$@"
|
check_cc "$@" <<EOF
|
||||||
int x;
|
int x;
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_cflags(){
|
||||||
|
log check_cflags "$@"
|
||||||
|
test_cflags "$@" && add_cflags "$@"
|
||||||
|
}
|
||||||
|
|
||||||
test_ldflags(){
|
test_ldflags(){
|
||||||
log test_ldflags "$@"
|
log test_ldflags "$@"
|
||||||
check_ld "$@" <<EOF
|
check_ld "$@" <<EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user