Fix up path generation to use OPENSSL_MODULES
[openssl.git] / crypto / rc4 / asm / rc4-c64xplus.pl
index 9f282fe45e55f1f741098904aa7f6ec4ee341abf..bd1745f1f32bbc3572e7e17939a69a07c0803d95 100644 (file)
@@ -1,7 +1,7 @@
 #! /usr/bin/env perl
-# Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright 2014-2020 The OpenSSL Project Authors. All Rights Reserved.
 #
-# Licensed under the OpenSSL license (the "License").  You may not use
+# Licensed under the Apache License 2.0 (the "License").  You may not use
 # this file except in compliance with the License.  You can obtain a copy
 # in the file LICENSE in the source distribution or at
 # https://www.openssl.org/source/license.html
@@ -186,5 +186,6 @@ rc4_options:
        .align  4
 ___
 
+$output = pop and open STDOUT,">$output";
 print $code;
-close STDOUT;
+close STDOUT or die "error closing STDOUT: $!";