From c9edb90e1c0de979060fe4133248b9a974d3609c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 31 Jul 2013 12:02:03 -0400 Subject: apparently if we set OBJECT, we need to include all objects (#3) --- Makefile.PL | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index 27b181a..383791e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -5,13 +5,19 @@ use strict; use warnings; +use Config; use ExtUtils::MakeMaker::Dist::Zilla::Develop; 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; +push @linkable, "Keyword$Config{obj_ext}" if @linkable; + WriteMakefile( NAME => 'Parse::Keyword', - OBJECT => join(' ', callparser_linkable), + (@linkable + ? (OBJECT => join(' ', @linkable)) + : ()), ); -- cgit v1.2.3-54-g00ecf