python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / perl-gd / 0002-lgd.patch
blob2827cd76b3aa81ff13309823d4cfe0ea3f2314a6
1 refactor -lgd in @LIBS
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 @@ -42,9 +42,9 @@
11 END
14 +push @LIBS, "-lgd";
15 @INC = qw(-I/usr/include -I/usr/include/gd) unless @INC;
16 @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/lib) unless @LIBPATH;
17 -@LIBS = qw(-lgd) unless @LIBS;
19 # support for AMD64 libraries
20 if (-d '/usr/lib64') {
21 @@ -294,7 +294,6 @@
22 @$LIBPATH = map {s/^-L// && "-L$_"} split /\s+/,$ldflags;
23 @$LIBS = split /\s+/,$libs;
25 - push @$LIBS,"-lgd";
26 push @$LIBPATH,"-L$libdir";
27 ($$lib_gd_path = $libdir) =~ s!/[^/]+$!!;
28 $$options = $features;