On Mon, 15 Oct 2012, Mans Rullgard wrote:

Use the existing filter functions instead of open-coding the
separation of general flags and libraries.

Signed-off-by: Mans Rullgard <m...@mansr.com>
---
configure | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/configure b/configure
index 3bb8fff..eeefeaf 100755
--- a/configure
+++ b/configure
@@ -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)
--
1.7.12.3

Ok

// Martin
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to