x86_64 assembly pack: make Windows build more robust.
[openssl.git] / crypto / modes / asm / ghash-x86_64.pl
index 37653db6687605a6796c069618c6b51340621f8b..cd93c0f95ec0da61f87913ab505df8be62a25130 100644 (file)
@@ -52,7 +52,8 @@ $0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
 ( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or
 die "can't locate x86_64-xlate.pl";
 
 ( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or
 die "can't locate x86_64-xlate.pl";
 
-open STDOUT,"| $^X $xlate $flavour $output";
+open OUT,"| \"$^X\" $xlate $flavour $output";
+*STDOUT=*OUT;
 
 # common register layout
 $nlo="%rax";
 
 # common register layout
 $nlo="%rax";