From 69a9aaea31de13274865e28da091853994013bf9 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Thu, 6 Sep 2007 09:23:32 +0000 Subject: Added the --enable-symbols to Makefile.PL possible args to force a compilation with debug --- Perl/Makefile.PL | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Perl/Makefile.PL') diff --git a/Perl/Makefile.PL b/Perl/Makefile.PL index a2e46df..d3125f4 100644 --- a/Perl/Makefile.PL +++ b/Perl/Makefile.PL @@ -81,6 +81,7 @@ WriteMakefile( 'NAME' => 'Tk::Zinc', 'PREREQ_PM' => $WIN ? {Tk => 8.004} : {Tk => 8.0}, 'LIBS' => $NeededLibs, + 'OPTIMIZE' => &optimize, 'DEFINE' => &get_flags, 'INC' => $INC, 'C' => [@C], @@ -91,6 +92,15 @@ WriteMakefile( 'LDFROM' => "\$(O_FILES) $ZincObj", ); +sub optimize { + foreach my $arg (@ARGV) { + if ($arg =~ /(enable-symbols)/i) { + return "-g"; + } + } + return "-O"; +} + sub get_flags { my %DEF_FLAGS = ('GL' => 1, 'SHAPE' => 1, -- cgit v1.1