--- Makefile.PL.orig Wed May 13 22:19:29 2015 +++ Makefile.PL Fri Jun 19 10:12:50 2015 @@ -1,8 +1,9 @@ use ExtUtils::MakeMaker; use ExtUtils::Constant 0.11 'WriteConstants'; +my $LOCALBASE=$ENV{'LOCALBASE'}; WriteMakefile( NAME => 'GDBM_File', - LIBS => ["-lgdbm", "-ldbm"], + LIBS => ["-L$LOCALBASE/lib -lgdbm", "-ldbm"], XSPROTOARG => '-noprototypes', # XXX remove later? VERSION_FROM => 'GDBM_File.pm', realclean => {FILES=> 'const-c.inc const-xs.inc'},