[FFmpeg-cvslog] configure: simplify argument handling in check_ld
Mans Rullgard
git at videolan.org
Tue Oct 16 13:30:47 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Oct 14 01:35:56 2012 +0100| [66a1ccd7467ab1913cd8877114c6d4c2588bb12f] | committer: Mans Rullgard
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 at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66a1ccd7467ab1913cd8877114c6d4c2588bb12f
---
configure | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/configure b/configure
index a054830..e6b2a31 100755
--- a/configure
+++ b/configure
@@ -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)
More information about the ffmpeg-cvslog
mailing list