ok, my question was not very clear, the default I've seen is that libs are installed into something like
$PREFIX/lib/perl5/5.8.2/some/long/module/name
instead of
$PREFIX/lib/some/long/module/name
Since I'd like to use FindBin to point an executable installed in $PREFIX/bin to the locally installed libs the inbetween 'perl5/5.8.2/site_perl' is kind of awkward in such a situation (while obviously very useful when installing into a default location).
Anyway, I've added this to my Makefile.PL :
# if PREFIX is set, set LIB too
foreach my $arg (@ARGV) {
if ($arg =~ /^PREFIX=(.*)/) {
push @ARGV, "LIB=$1/lib";
}
}
not very elegant but kind of works. |