diff options
author | Romain Naour <romain.naour@openwide.fr> | 2014-12-21 00:50:59 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-12-21 13:09:19 +0100 |
commit | c7007963882baa61361a9905771a68077ae2d695 (patch) | |
tree | 26cc1b6112d370ec305b2234f24b1def74e3f1a4 /package/perl-gd/0003-force.patch | |
parent | 857cba81104693f6d0114107d22eaf8b88d236e4 (diff) | |
download | buildroot-c7007963882baa61361a9905771a68077ae2d695.tar.gz buildroot-c7007963882baa61361a9905771a68077ae2d695.zip |
package/perl-gd: rename patches to follow the new name convention
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/perl-gd/0003-force.patch')
-rw-r--r-- | package/perl-gd/0003-force.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/perl-gd/0003-force.patch b/package/perl-gd/0003-force.patch new file mode 100644 index 0000000000..0a121a994e --- /dev/null +++ b/package/perl-gd/0003-force.patch @@ -0,0 +1,32 @@ +let @INC and @LIBPATH empty when ignore_missing_gd + +Signed-off-by: Francois Perrad <francois.perrad@gadz.org> +see https://github.com/lstein/Perl-GD/pull/7 + +Index: b/Makefile.PL +=================================================================== +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -35,13 +35,15 @@ + } + + push @LIBS, "-lgd"; +-@INC = qw(-I/usr/include -I/usr/include/gd) unless @INC; +-@LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/lib) unless @LIBPATH; +- +-# support for AMD64 libraries +-if (-d '/usr/lib64') { +- my @libs64 = map {my $a = $_; $a=~ s/lib$/lib64/; $a} @LIBPATH; +- @LIBPATH = (@LIBPATH,@libs64); ++unless ($force) { ++ @INC = qw(-I/usr/include -I/usr/include/gd) unless @INC; ++ @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/lib) unless @LIBPATH; ++ ++ # support for AMD64 libraries ++ if (-d '/usr/lib64') { ++ my @libs64 = map {my $a = $_; $a=~ s/lib$/lib64/; $a} @LIBPATH; ++ @LIBPATH = (@LIBPATH,@libs64); ++ } + } + + ############################################################################################# |