configure: Remap -L to -libpath for msvc
authorMartin Storsjö <martin@martin.st>
Fri, 2 Jan 2015 21:29:27 +0000 (23:29 +0200)
committerMartin Storsjö <martin@martin.st>
Sun, 4 Jan 2015 17:57:34 +0000 (19:57 +0200)
This allows using libraries that are detected via pkg-config with
msvc. (The libraries themselves may have to be built with MSVC
though.)

Signed-off-by: Martin Storsjö <martin@martin.st>
configure

index 48669a0..6648035 100755 (executable)
--- a/configure
+++ b/configure
@@ -2702,6 +2702,7 @@ msvc_common_flags(){
             -lavifil32)           echo vfw32.lib ;;
             -lavicap32)           echo vfw32.lib user32.lib ;;
             -l*)                  echo ${flag#-l}.lib ;;
+            -L*)                  echo -libpath:${flag#-L} ;;
             *)                    echo $flag ;;
         esac
     done