--- Geo-LatLon2Place/Makefile.PL 2022/03/14 16:04:07 1.3 +++ Geo-LatLon2Place/Makefile.PL 2022/03/14 22:48:05 1.4 @@ -2,6 +2,26 @@ use Canary::Stability Geo::LatLon2Place => 1, 5.010; +my $embed_cdb = $^O eq "MSWin32"; + +if (exists $ENV{GEO_LATLON2PLACE_EMBED_CDB}) { + $embed_cdb = $ENV{GEO_LATLON2PLACE_EMBED_CDB}; +} else { + print < { PREOP => 'pod2text LatLon2Place.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', @@ -9,7 +29,7 @@ SUFFIX => '.gz', }, NAME => "Geo::LatLon2Place", - LIBS => ["-lcdb"], + ($embed_cdb ? (DEFINE => "-DEMBED_CDB") : (LIBS => ["-lcdb"])), VERSION_FROM => "LatLon2Place.pm", CONFIGURE_REQUIRES => { "ExtUtils::MakeMaker" => 6.6,