Make all x86_64 modules independent on current working directory.
[openssl.git] / crypto / x86_64cpuid.pl
index a8049def1848f541836840406ac193882559e0a4..18a2867036a0b61f89515803e5a954a90f3c6173 100644 (file)
@@ -99,7 +99,9 @@ OPENSSL_wipe_cpu:
 
 ___
 
-open STDOUT,"| $^X perlasm/x86_64-xlate.pl $output";
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+open STDOUT,"| $^X $dir/perlasm/x86_64-xlate.pl $output";
+
 print<<___;
 .text