]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Configure: use correct variable to infer the .ld file location
authorRichard Levitte <levitte@openssl.org>
Thu, 4 Oct 2018 15:41:51 +0000 (17:41 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 5 Oct 2018 06:22:42 +0000 (08:22 +0200)
We didn't notice the error because it all happened in the top directory.
Now that we use .ld files in subdirectories, the bug became apparent.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7347)

Configure

index de4ca6868bba75bc5498d0c5d37e739025d31ed8..2e81640e7ac67870b7dac70588a45d691ecf0cc8 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -2079,7 +2079,7 @@ EOF
                 } elsif ($s =~ /\.ld$/) {
                     # We also recognise linker scripts (or corresponding)
                     # We know they are generated files
-                    my $ld = cleanfile($buildd, $s, $blddir);
+                    my $ld = cleanfile($buildd, $_, $blddir);
                     $unified_info{shared_sources}->{$ddest}->{$ld} = 1;
                 } else {
                     die "unrecognised source file type for shared library: $s\n";