Subject: | Fails to build with glib2.0 due to switch to pkg-config |
glib2.0 has switched to pkg-config. It breaks Build.PL. I have included
my Build.PL. Maybe make it check for both glib-config and pkg-config?
Subject: | Build.PL |
use strict;
use Module::Build;
die "You don't seem to have glib installed (couldn't run glib-config --version), stopping\n"
unless `pkg-config --version glib-2.0`;
my $build = Module::Build->new(
module_name => "Devel::LeakTrace",
dynamic_config => 1,
license => 'perl',
requires => {
'Module::Build' => '0.19', # xs
'Test::More' => 0,
},
extra_compiler_flags => ''.`pkg-config --cflags glib-2.0`,
extra_linker_flags => ''.`pkg-config --libs glib-2.0`,
create_makefile_pl => 'passthrough',
);
$build->create_build_script;