From: Richard Levitte Date: Wed, 7 Nov 2018 10:10:50 +0000 (+0100) Subject: Build: pass attributes down to make rule generators X-Git-Tag: openssl-3.0.0-alpha1~2619 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5f8257494c72ba4ea2a99d693916798517a610e1;p=oweals%2Fopenssl.git Build: pass attributes down to make rule generators For good measure, we pass down attributes when calling obj2shlib, obj2lib, obj2dso, obj2bin, or in2script. We currently don't use them in our build file templates, but might as well for future use. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/7581) --- diff --git a/Configurations/common.tmpl b/Configurations/common.tmpl index 9e07a6f112..132852ce75 100644 --- a/Configurations/common.tmpl +++ b/Configurations/common.tmpl @@ -130,6 +130,7 @@ unless ($disabled{shared} || $lib =~ /\.a$/) { my $obj2shlib = defined &obj2shlib ? \&obj2shlib : \&libobj2shlib; $OUT .= $obj2shlib->(lib => $lib, + attrs => $unified_info{attributes}->{$lib}, objs => $unified_info{shared_sources}->{$lib}, deps => [ reducedepends(resolvedepends($lib)) ], installed => is_installed($lib)); @@ -145,6 +146,7 @@ } } $OUT .= obj2lib(lib => $lib, + attrs => $unified_info{attributes}->{$lib}, objs => [ @{$unified_info{sources}->{$lib}} ]); foreach (@{$unified_info{sources}->{$lib}}) { doobj($_, $lib, intent => "lib", installed => is_installed($lib)); @@ -159,6 +161,7 @@ my $lib = shift; return "" if $cache{$lib}; $OUT .= obj2dso(lib => $lib, + attrs => $unified_info{attributes}->{$lib}, objs => $unified_info{shared_sources}->{$lib}, deps => [ resolvedepends($lib) ], installed => is_installed($lib)); @@ -181,6 +184,7 @@ return "" if $cache{$bin}; my $deps = [ reducedepends(resolvedepends($bin)) ]; $OUT .= obj2bin(bin => $bin, + attrs => $unified_info{attributes}->{$bin}, objs => [ @{$unified_info{sources}->{$bin}} ], deps => $deps, installed => is_installed($bin)); @@ -196,6 +200,7 @@ my $script = shift; return "" if $cache{$script}; $OUT .= in2script(script => $script, + attrs => $unified_info{attributes}->{$script}, sources => $unified_info{sources}->{$script}, installed => is_installed($script)); $cache{$script} = 1;