diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-10-31 19:48:59 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-11-01 22:05:20 +0100 |
commit | 23157d72b565e0228fec97f1eb059d4f8021a260 (patch) | |
tree | c4aa1020d2585fd9d23b9752f5be1efb78739868 /configure | |
parent | d1c229cdbc07ef8eb703d68d1c5b509baee85245 (diff) | |
download | ffmpeg-23157d72b565e0228fec97f1eb059d4f8021a260.tar.gz |
configure: Split test_cflags function off from check_cflags
This is useful to test flags without directly adding them to CFLAGS.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |