linux-pam: add optional libselinux and audit dependencies
[buildroot-gz.git] / package / perl-gd / 0002-lgd.patch
blob4a69c2ae8eef0fb4e1667376df7e596bc670a77b
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 @@ -34,9 +34,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 @@ -291,7 +291,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;