X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=ms%2Fuplink-x86_64.pl;h=5564c2c7bab1c57861a87489cc202cbe7880c021;hp=9efe5ab98bb51573b9fba8d0c9b3f9fc82a4af96;hb=1aa89a7a3afb053d0c0b7fad8d3ea1b0a5447289;hpb=a1c8befd661fa2145d330bb04ebc6061660db4fd diff --git a/ms/uplink-x86_64.pl b/ms/uplink-x86_64.pl index 9efe5ab98b..5564c2c7ba 100755 --- a/ms/uplink-x86_64.pl +++ b/ms/uplink-x86_64.pl @@ -6,9 +6,12 @@ # in the file LICENSE in the source distribution or at # https://www.openssl.org/source/license.html -$output=pop; +# $output is the last argument if it looks like a file (it has an extension) +$output = $#ARGV >= 0 && $ARGV[$#ARGV] =~ m|\.\w+$| ? pop : undef; + $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1; -open OUT,"| \"$^X\" \"${dir}../crypto/perlasm/x86_64-xlate.pl\" \"$output\""; +open OUT,"| \"$^X\" \"${dir}../crypto/perlasm/x86_64-xlate.pl\" \"$output\"" + or die "can't call ${dir}../crypto/perlasm/x86_64-xlate.pl: $!"; *STDOUT=*OUT; push(@INC,"${dir}.");