From efac215c7de20daea4fcbe602a9acc0d283c824f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 1 Aug 2013 11:12:23 -0400 Subject: make all of the objects use relative paths (#3) if they use absolute paths on windows, we can end up with a makefile rule that looks like this: Keyword.o C:\...\CallParser.a : ... and make gets confused by that first colon. --- inc/MMHelper.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/MMHelper.pm b/inc/MMHelper.pm index 8e42fa9..89dc52e 100644 --- a/inc/MMHelper.pm +++ b/inc/MMHelper.pm @@ -4,12 +4,12 @@ use warnings; sub makefile_pl_extra { return <<'EXTRA'; -use Config; +use File::Spec::Functions 'abs2rel'; use Devel::CallParser 'callparser1_h', 'callparser_linkable'; open my $fh, '>', 'callparser1.h' or die "Couldn't write to callparser1.h"; $fh->print(callparser1_h); -my @linkable = callparser_linkable; -unshift @linkable, "Keyword$Config{obj_ext}" if @linkable; +my @linkable = map { abs2rel($_) } callparser_linkable; +unshift @linkable, '$(BASEEXT)$(OBJ_EXT)' if @linkable; $WriteMakefileArgs{OBJECT} = join(' ', @linkable) if @linkable; EXTRA } -- cgit v1.2.3-54-g00ecf