Remove the dependency on $(abspath) in makefiles
authorVolker Lendecke <vl@samba.org>
Thu, 19 Jun 2008 10:29:50 +0000 (12:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 19 Jun 2008 12:22:57 +0000 (14:22 +0200)
This is not around before GNU make 3.81, for me this fixes the build
on GNU make 3.80

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source/heimdal_build/asn1_deps.pl
source/heimdal_build/et_deps.pl

index 612178176074143767e732f9c76082b87a7a14a9..80334328fc481baef2031ce3f64b6a31709628ea 100755 (executable)
@@ -6,6 +6,7 @@
 # GPL
 
 use File::Basename;
+use Cwd 'getcwd';
 
 my $file = shift;
 my $prefix = shift;
@@ -31,7 +32,7 @@ my $header = "$dirname/$prefix.h";
 
 print "$header: \$(heimdalsrcdir)/$file \$(ASN1C)\n";
 print "\t\@echo \"Compiling ASN1 file \$(heimdalsrcdir)/$file\"\n";
-print "\t\@\$(heimdalbuildsrcdir)/asn1_compile_wrapper.sh \$(builddir) $dirname \$(ASN1C) \$(abspath \$(heimdalsrcdir)/$file) $prefix $options\n\n";
+print "\t\@\$(heimdalbuildsrcdir)/asn1_compile_wrapper.sh \$(builddir) $dirname \$(ASN1C) " . getcwd() . "/\$(heimdalsrcdir)/$file $prefix $options\n\n";
 
 open(IN,"heimdal/$file") or die("Can't open heimdal/$file: $!");
 my @lines = <IN>;
index 6a0485bb54a56a9a7ee5d26c18599cb75f8c03bf..5deabe82b547d87433b112bf62298fbb833d364b 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/perl
 
 use File::Basename;
+use Cwd 'getcwd';
 
 my $file = shift;
 my $dirname = shift;
@@ -10,7 +11,7 @@ my $header = "$dirname/$basename"; $header =~ s/\.et$/.h/;
 my $source = "$dirname/$basename"; $source =~ s/\.et$/.c/;
 print "$header $source: \$(heimdalsrcdir)/$file \$(ET_COMPILER)\n";
 print "\t\@echo \"Compiling error table $file\"\n";
-print "\t\@\$(heimdalbuildsrcdir)/et_compile_wrapper.sh \$(builddir) $dirname \$(ET_COMPILER) \$(abspath \$(heimdalsrcdir)/$file) $source\n\n";
+print "\t\@\$(heimdalbuildsrcdir)/et_compile_wrapper.sh \$(builddir) $dirname \$(ET_COMPILER) " . getcwd() . "/\$(heimdalsrcdir)/$file $source\n\n";
 
 print "clean:: \n";
 print "\t\@rm -f $header $source\n\n";