1 let @INC and @LIBPATH empty when ignore_missing_gd
3 Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
4 see https://github.com/lstein/Perl-GD/pull/7
7 ===================================================================
14 -@INC = qw(-I/usr/include -I/usr/include/gd) unless @INC;
15 -@LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/lib) unless @LIBPATH;
17 -# support for AMD64 libraries
18 -if (-d '/usr/lib64') {
19 - my @libs64 = map {my $a = $_; $a=~ s/lib$/lib64/; $a} @LIBPATH;
20 - @LIBPATH = (@LIBPATH,@libs64);
22 + @INC = qw(-I/usr/include -I/usr/include/gd) unless @INC;
23 + @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/lib) unless @LIBPATH;
25 + # support for AMD64 libraries
26 + if (-d '/usr/lib64') {
27 + my @libs64 = map {my $a = $_; $a=~ s/lib$/lib64/; $a} @LIBPATH;
28 + @LIBPATH = (@LIBPATH,@libs64);
32 #############################################################################################