Commit 95c5a2b6 authored by Martin Wilck's avatar Martin Wilck Committed by Alexandre Julliard

Fix -i option for winebuild linking.

parent 6226f3f2
......@@ -440,10 +440,7 @@ sub source_set_options($$)
push @{@$target[$T_DLL_PATH]},"-L$'";
} elsif ($option =~ /^-i/) {
my $dllname = $';
if ($dllname =~ /^[^.]*$/) {
$dllname .= ".dll";
}
if ($dllname =~ /^msvcrt\.dll$/) {
if ($dllname =~ /^msvcrt$/) {
push @{@$target[$T_INCLUDE_PATH]},"-I\$(WINE_INCLUDE_ROOT)/msvcrt";
}
push @{@$target[$T_DLLS]},$dllname;
......@@ -2213,10 +2210,7 @@ while (@ARGV>0) {
push @{$global_settings[$T_DLL_PATH]},"-L$'";
} elsif ($arg =~ /^-i/) {
my $dllname = $';
if ($dllname =~ /^[^.]*$/) {
$dllname .= ".dll";
}
if ($dllname =~ /^msvcrt\.dll$/) {
if ($dllname =~ /^msvcrt$/) {
push @{$global_settings[$T_INCLUDE_PATH]},"-I\$(WINE_INCLUDE_ROOT)/msvcrt";
}
push @{$global_settings[$T_DLLS]},$dllname;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment