Skip to content
Snippets Groups Projects
Commit 66a1ccd7 authored by Mans Rullgard's avatar Mans Rullgard
Browse files

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: default avatarMans Rullgard <mans@mansr.com>
parent 4c995faf
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment