diff options
author | Richard Levitte <levitte@openssl.org> | 2016-03-19 18:59:48 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-03-19 22:21:14 +0100 |
commit | 674d5858df6cd3dc5cafa25875861f4742d64608 (patch) | |
tree | a53eb06a7e7967ce3f415929bcf0df3d64e9607b /Configurations/unix-Makefile.tmpl | |
parent | 812e0c8d68da2f40e216aebc042cec6f38180a28 (diff) |
If the asm file to be compiled isn't generated, leave the ext alone
Closes RT#4447
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'Configurations/unix-Makefile.tmpl')
-rw-r--r-- | Configurations/unix-Makefile.tmpl | 7 |
1 files changed, 6 insertions, 1 deletions
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}}); |