contrib/buildsystems: handle options starting with a slash
[gitweb.git] / contrib / buildsystems / engine.pl
index 9bde7ae15b538eacfc4ee1a2f4855495f114723d..8bb07e8e25cc505ad25a97731fb482dc2b8b2334 100755 (executable)
@@ -351,7 +351,7 @@ sub handleLinkLine
             push(@libs, "expat.lib");
         } elsif ("$part" eq "-liconv") {
             push(@libs, "libiconv.lib");
-        } elsif ($part =~ /^-/) {
+        } elsif ($part =~ /^[-\/]/) {
             push(@lflags, $part);
         } elsif ($part =~ /\.(a|lib)$/) {
             $part =~ s/\.a$/.lib/;