diff options
author | Mans Rullgard <mans@mansr.com> | 2012-10-14 01:35:56 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-10-15 17:46:18 +0100 |
commit | 66a1ccd7467ab1913cd8877114c6d4c2588bb12f (patch) | |
tree | f44814f3407f92ace7faab965548a340861b2dd9 /configure | |
parent | 4c995fafd861f537360b3717901cdbed6a6844e7 (diff) | |
download | ffmpeg-66a1ccd7467ab1913cd8877114c6d4c2588bb12f.tar.gz |
configure: simplify argument handling in check_ld
Use the existing filter functions instead of open-coding the
separation of general flags and libraries.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -704,11 +704,8 @@ ld_o(){ check_ld(){ log check_ld "$@" - flags='' - libs='' - for f; do - test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f" - done + flags=$(filter_out '-l*' "$@") + libs=$(filter '-l*' "$@") check_cc $($cflags_filter $flags) || return flags=$($ldflags_filter $flags) libs=$($ldflags_filter $libs) |