aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-16 13:27:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-16 13:27:19 +0200
commitd15be9108e6a17e6fdc224fb8cd2640b825dd408 (patch)
treeb2746f8d3c3c83da929a2e1d5ffec91a5d046497
parent9270a2b374eae02c3588ff9a36af298d19f006c8 (diff)
parent66a1ccd7467ab1913cd8877114c6d4c2588bb12f (diff)
downloadffmpeg-d15be9108e6a17e6fdc224fb8cd2640b825dd408.tar.gz
Merge commit '66a1ccd7467ab1913cd8877114c6d4c2588bb12f'
* commit '66a1ccd7467ab1913cd8877114c6d4c2588bb12f': configure: simplify argument handling in check_ld Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-xconfigure7
1 files changed, 2 insertions, 5 deletions
diff --git a/configure b/configure
index 33bb2144e3..18f57ae5b6 100755
--- a/configure
+++ b/configure
@@ -763,11 +763,8 @@ check_ld(){
log check_ld "$@"
type=$1
shift 1
- flags=''
- libs=''
- for f; do
- test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
- done
+ flags=$(filter_out '-l*' "$@")
+ libs=$(filter '-l*' "$@")
check_$type $($cflags_filter $flags) || return
flags=$($ldflags_filter $flags)
libs=$($ldflags_filter $libs)