toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / perl-gd / 0003-force.patch
blob0a121a994e625ca4574df886bf18302398110b11
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
6 Index: b/Makefile.PL
7 ===================================================================
8 --- a/Makefile.PL
9 +++ b/Makefile.PL
10 @@ -35,13 +35,15 @@
13 push @LIBS, "-lgd";
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);
21 +unless ($force) {
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);
29 + }
32 #############################################################################################