Update perl asm scripts include paths for perlasm.
[openssl.git] / crypto / bn / asm / co-586.pl
index 5d962cb957d34447b3e7cfc6de632648154f11ed..57101a6bd7757f3d8b57671edcb7a67a06f842cc 100644 (file)
@@ -1,6 +1,7 @@
 #!/usr/local/bin/perl
 
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
 require "x86asm.pl";
 
 &asm_init($ARGV[0],$0);