>From e3f6954c391fcc2d6373b7b87decf95c953c0490 Mon Sep 17 00:00:00 2001 From: Martin Schlemmer Date: Fri, 22 Mar 2013 15:39:49 +0200 Subject: [PATCH 2/2] Add gmodule-2.0 to required libraries, as its used by GObjectIntrospection.xs. Add a workaround for DMAKE to postamble(). --- Makefile.PL | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index f74e93c..57a9403 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -35,6 +35,7 @@ my %CONFIG_REQ_PM = ( my %BUILD_REQ = ( 'gobject-introspection-1.0' => '0.10.0', + 'gmodule-2.0' => '2.30.0', 'libffi' => '3.0.0', ); @@ -111,6 +112,18 @@ if (!$cfg_success) { } $cfg_success = eval { + my %cfg_gmod = ExtUtils::PkgConfig->find ( + "gmodule-2.0 >= $BUILD_REQ{'gmodule-2.0'}"); + $cfg{cflags} .= " $cfg_gmod{cflags}"; + $cfg{libs} .= " $cfg_gmod{libs}"; + 1; +}; +if (!$cfg_success) { + warn $@; + exit 0; +} + +$cfg_success = eval { my %cfg_ffi = ExtUtils::PkgConfig->find ( "libffi >= $BUILD_REQ{'libffi'}"); $cfg{cflags} .= " $cfg_ffi{cflags}"; @@ -286,5 +299,9 @@ sub test { sub postamble { my $additional_deps = "\n\n\$(OBJECT) : gperl-i11n-*.c\n\n"; + if ($^O eq 'MSWin32') { + # FIXME: Might need tweaking for nmake... + $additional_deps = "\n\n\$(OBJECT) : \$(wildcard gperl-i11n-*.c)\n\n"; + } return Glib::MakeHelper->postamble_clean () . $additional_deps; } -- 1.8.1.msysgit.1