From abe7f8b457c29af112005e821b57c0a355df82c5 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 13 Jan 2008 17:42:04 +0000 Subject: Make all x86_64 modules independent on current working directory. --- crypto/whrlpool/asm/wp-x86_64.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crypto/whrlpool') diff --git a/crypto/whrlpool/asm/wp-x86_64.pl b/crypto/whrlpool/asm/wp-x86_64.pl index 3855382036..41bf3b2025 100644 --- a/crypto/whrlpool/asm/wp-x86_64.pl +++ b/crypto/whrlpool/asm/wp-x86_64.pl @@ -31,7 +31,13 @@ # operand. $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"; sub L() { $code.=".byte ".join(',',@_)."\n"; } sub LL(){ $code.=".byte ".join(',',@_).",".join(',',@_)."\n"; } -- cgit v1.2.1