From: Richard Levitte Date: Sat, 19 Mar 2016 17:59:48 +0000 (+0100) Subject: If the asm file to be compiled isn't generated, leave the ext alone X-Git-Tag: OpenSSL_1_1_0-pre5~290 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=674d5858df6cd3dc5cafa25875861f4742d64608;p=oweals%2Fopenssl.git If the asm file to be compiled isn't generated, leave the ext alone Closes RT#4447 Reviewed-by: Viktor Dukhovni --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 3a3fd2ea11..48cea07d2c 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -841,7 +841,12 @@ EOF sub src2obj { my %args = @_; my $obj = $args{obj}; - my @srcs = map { (my $x = $_) =~ s/\.S$/.s/; $x } ( @{$args{srcs}} ); + my @srcs = map { if ($unified_info{generate}->{$_}) { + (my $x = $_) =~ s/\.S$/.s/; $x + } else { + $_ + } + } ( @{$args{srcs}} ); my $srcs = join(" ", @srcs); my $deps = join(" ", @srcs, @{$args{deps}}); my $incs = join("", map { " -I".$_ } @{$args{incs}}); diff --git a/Configurations/windows-makefile.tmpl b/Configurations/windows-makefile.tmpl index aea269320f..e4faa95d1f 100644 --- a/Configurations/windows-makefile.tmpl +++ b/Configurations/windows-makefile.tmpl @@ -290,7 +290,12 @@ EOF sub src2obj { my %args = @_; my $obj = $args{obj}; - my @srcs = map { (my $x = $_) =~ s/\.[sS]$/.asm/; $x } ( @{$args{srcs}} ); + my @srcs = map { if ($unified_info{generate}->{$_}) { + (my $x = $_) =~ s/\.[sS]$/.asm/; $x + } else { + $_ + } + } ( @{$args{srcs}} ); my $srcs = join(" ", @srcs); my $deps = join(" ", @srcs, @{$args{deps}}); my $incs = join("", map { " /I ".$_ } @{$args{incs}});