X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;ds=inline;f=Configure;h=5abbd72a9718c3eb7f1aa0774cd52980e1c0e420;hb=ccce3e1db5132e472d1871c6a02caec5c71db72a;hp=a5d5c84e024451c91a5033550862fc48a982b711;hpb=793077d0beccfa20c9962546393128b92a7e68e4;p=openssl.git diff --git a/Configure b/Configure index a5d5c84e02..5abbd72a97 100755 --- a/Configure +++ b/Configure @@ -1875,14 +1875,27 @@ EOF if (! -f $s) { $s = cleanfile($buildd, $_, $blddir); } - # We recognise C++, C and asm files + if ($s =~ /\.(cc|cpp|c|s|S)$/) { + # We recognise C++, C and asm files my $o = $_; $o =~ s/\.[csS]$/.o/; # C and assembler $o =~ s/\.(cc|cpp)$/_cc.o/; # C++ $o = cleanfile($buildd, $o, $blddir); $unified_info{shared_sources}->{$ddest}->{$o} = 1; $unified_info{sources}->{$o}->{$s} = 1; + } elsif ($s =~ /\.rc$/) { + # We also recognise resource files + my $o = $_; + $o =~ s/\.rc$/.res/; # Resource configuration + my $o = cleanfile($buildd, $o, $blddir); + $unified_info{shared_sources}->{$ddest}->{$o} = 1; + $unified_info{sources}->{$o}->{$s} = 1; + } elsif ($s =~ /\.(def|map|opt)$/) { + # We also recognise .def / .map / .opt files + # We know they are generated files + my $def = cleanfile($buildd, $s, $blddir); + $unified_info{shared_sources}->{$ddest}->{$def} = 1; } else { die "unrecognised source file type for shared library: $s\n"; }