board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / perl-gd / 0003-force.patch
blob611066b9191949889c680a49240a0ee69ab02b39
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 @@ -43,13 +43,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 #############################################################################################