From: Richard Levitte Date: Thu, 1 Nov 2018 13:02:21 +0000 (+0100) Subject: util/add-depends.pl: go through shared_sources too X-Git-Tag: OpenSSL_1_1_1a~39 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=4274ef97c1300d1924c537b7d4c91bb8494a5de2 util/add-depends.pl: go through shared_sources too Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/7545) (cherry picked from commit 3866b2247fb7904a4e660593a16365147f479415) --- diff --git a/util/add-depends.pl b/util/add-depends.pl index deb0de238a..55d56b7613 100644 --- a/util/add-depends.pl +++ b/util/add-depends.pl @@ -36,8 +36,10 @@ my @depfiles = scalar @st > 0; # Determines the grep result } map { (my $x = $_) =~ s|\.o$|$depext|; $x; } - grep { $unified_info{sources}->{$_}->[0] =~ /\.cc?$/ } - keys %{$unified_info{sources}}; + ( ( grep { $unified_info{sources}->{$_}->[0] =~ /\.cc?$/ } + keys %{$unified_info{sources}} ), + ( grep { $unified_info{shared_sources}->{$_}->[0] =~ /\.cc?$/ } + keys %{$unified_info{shared_sources}} ) ); exit 0 unless $rebuild;