From: Andy Polyakov Date: Sun, 13 Jan 2008 17:42:04 +0000 (+0000) Subject: Make all x86_64 modules independent on current working directory. X-Git-Tag: OpenSSL_0_9_8k^2~570 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=abe7f8b457c29af112005e821b57c0a355df82c5;p=oweals%2Fopenssl.git Make all x86_64 modules independent on current working directory. --- diff --git a/crypto/md5/asm/md5-x86_64.pl b/crypto/md5/asm/md5-x86_64.pl index 4330eddb17..493231401e 100755 --- a/crypto/md5/asm/md5-x86_64.pl +++ b/crypto/md5/asm/md5-x86_64.pl @@ -109,7 +109,13 @@ EOF } my $output = shift; -open STDOUT,"| $^X ../perlasm/x86_64-xlate.pl $output"; + +$0 =~ m/(.*[\/\\])[^\/\\]+$/; my $dir=$1; my $xlate; +( $xlate="${dir}x86_64-xlate.pl" and -f $xlate ) or +( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or +die "can't locate x86_64-xlate.pl"; + +open STDOUT,"| $^X $xlate $output"; $code .= <