Update perl asm scripts include paths for perlasm.
[openssl.git] / crypto / cast / asm / cast-586.pl
index 6be0bfe..bf6810d 100644 (file)
@@ -3,7 +3,8 @@
 # define for pentium pro friendly version
 $ppro=1;
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 require "cbc.pl";