Browse Source

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>
tags/n1.1
Mans Rullgard 12 years ago
parent
commit
66a1ccd746
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      configure

+ 2
- 5
configure View File

@@ -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)


Loading…
Cancel
Save