- added hardinvertall filter which also inverts the alpha channel
(sorry for the mess)
+ - when probing for TIFF, set LD_RUN_PATH just as the Makefile does so
+ the probe can find the library for the test run.
+ https://rt.cpan.org/Ticket/Display.html?id=57518
+
Imager 0.75 - 20 Jun 2010
===========
use File::Spec;
use Getopt::Long;
use ExtUtils::Manifest qw(maniread);
+use ExtUtils::Liblist;
use vars qw(%formats $VERBOSE $INCPATH $LIBPATH $NOLOG $DEBUG_MALLOC $MANUAL $CFLAGS $LFLAGS $DFLAGS);
use lib 'inc';
use Devel::CheckLib;
$lib = "tiff";
}
+ # setup LD_RUN_PATH to match link time
+ my $lopts = join " " , map("-L$_", @{$format->{libdir}}), " -ltiff";
+ my ($extra, $bs_load, $ld_load, $ld_run_path) =
+ ExtUtils::Liblist->ext($lopts, $VERBOSE);
+ local $ENV{LD_RUN_PATH};
+
+ if ($ld_run_path) {
+ print "Setting LD_RUN_PATH=$ld_run_path for TIFF probe\n" if $VERBOSE;
+ $ENV{LD_RUN_PATH} = $ld_run_path;
+ }
+
my $good =
eval {
assert_lib
};
unless ($good && -s $tiffver_name
- && open(VERS, "< probe/tiffver.txt")) {
+ && open(VERS, "< $tiffver_name")) {
unlink $tiffver_name unless $KEEP_FILES;
print <<EOS;
**tiff: cannot determine libtiff version number