mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
4c995fafd8
commit
66a1ccd746
7
configure
vendored
7
configure
vendored
@ -704,11 +704,8 @@ ld_o(){
|
|||||||
|
|
||||||
check_ld(){
|
check_ld(){
|
||||||
log check_ld "$@"
|
log check_ld "$@"
|
||||||
flags=''
|
flags=$(filter_out '-l*' "$@")
|
||||||
libs=''
|
libs=$(filter '-l*' "$@")
|
||||||
for f; do
|
|
||||||
test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
|
|
||||||
done
|
|
||||||
check_cc $($cflags_filter $flags) || return
|
check_cc $($cflags_filter $flags) || return
|
||||||
flags=$($ldflags_filter $flags)
|
flags=$($ldflags_filter $flags)
|
||||||
libs=$($ldflags_filter $libs)
|
libs=$($ldflags_filter $libs)
|
||||||
|
Loading…
Reference in New Issue
Block a user