Commit d15be910 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '66a1ccd7'

* commit '66a1ccd7':
  configure: simplify argument handling in check_ld

Conflicts:
	configure
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 9270a2b3 66a1ccd7
...@@ -763,11 +763,8 @@ check_ld(){ ...@@ -763,11 +763,8 @@ check_ld(){
log check_ld "$@" log check_ld "$@"
type=$1 type=$1
shift 1 shift 1
flags='' flags=$(filter_out '-l*' "$@")
libs='' libs=$(filter '-l*' "$@")
for f; do
test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
done
check_$type $($cflags_filter $flags) || return check_$type $($cflags_filter $flags) || return
flags=$($ldflags_filter $flags) flags=$($ldflags_filter $flags)
libs=$($ldflags_filter $libs) libs=$($ldflags_filter $libs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment