Load advpack.dll at runtime to avoid link problems with the platform
[wine] / dlls / make_dlls
index 82a6b33..08f333f 100755 (executable)
@@ -71,9 +71,12 @@ foreach my $i (split(/\s/,$makefiles))
             }
             next;
         }
-        if (/^ALTNAMES\s*=\s*(.*)/)
+        if (/^SPEC_SRCS16\s*=\s*(.*)/)
         {
-            my @list = split(/\s/,$1);
+            my $specs = $1;
+            while ($specs =~ /\s*(.*)\\$/) { $specs = $1 . <MAKE>; }
+            my @list = split(/\s+/,$specs);
+            @list = map { $_ =~ s/\.spec$//; $_ .= ".dll" unless $_ =~ /\./; $_; } @list;
             $altnames{$module} = \@list;
             next;
         }