diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-08-01 11:12:23 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-08-01 11:12:23 -0400 |
commit | efac215c7de20daea4fcbe602a9acc0d283c824f (patch) | |
tree | c5545c0de074338de5903a7014df0885168e75d3 | |
parent | 5ceef90c2388f73c0de979cd19cb3ff5060ecb66 (diff) | |
download | parse-keyword-efac215c7de20daea4fcbe602a9acc0d283c824f.tar.gz parse-keyword-efac215c7de20daea4fcbe602a9acc0d283c824f.zip |
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.
-rw-r--r-- | inc/MMHelper.pm | 6 |
1 files 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 } |