---
This isn't intended for main git at the moment, but is included to
illustrate how filter_ldflags could be used for translating -lfoo
to foo.lib. With this in place, no faux -lm is added to the command
line.

 configure |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/configure b/configure
index 9409524..8455290 100755
--- a/configure
+++ b/configure
@@ -2168,6 +2168,15 @@ elif $cc 2>&1 | grep -q Microsoft; then
             esac
         done
     }
+    filter_ldflags=msvc_ldflags
+    msvc_ldflags(){
+        for flag; do
+            case $flag in
+                -l*)                  echo ${flag:2}.lib ;;
+                *)                    echo $flag ;;
+            esac
+        done
+    }
     add_cflags -nologo
     add_cppflags -D_USE_MATH_DEFINES
     add_cppflags -Dinline=__inline
-- 
1.7.9.4

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

Reply via email to