[Buildroot] [PATCH] perl-gd: fix configure/build
François Perrad
fperrad at gmail.com
Sat Nov 29 09:50:59 UTC 2014
2014-11-28 21:44 GMT+01:00 Peter Korsgaard <peter at korsgaard.com>:
> >>>>> "Francois" == Francois Perrad <fperrad at gmail.com> writes:
>
> > see
> http://autobuild.buildroot.net/results/e74/e74efded899744d757cb798c44f096b54898f95a/
> > this new patch prevents the use of a host gdlib-config
>
> > Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
> > ---
> > package/perl-gd/perl-gd-04-no-autoconfig.patch | 19 +++++++++++++++++++
> > 1 file changed, 19 insertions(+)
> > create mode 100644 package/perl-gd/perl-gd-04-no-autoconfig.patch
>
> > diff --git a/package/perl-gd/perl-gd-04-no-autoconfig.patch
> b/package/perl-gd/perl-gd-04-no-autoconfig.patch
> > new file mode 100644
> > index 0000000..c067d41
> > --- /dev/null
> > +++ b/package/perl-gd/perl-gd-04-no-autoconfig.patch
> > @@ -0,0 +1,19 @@
> > +prevents the use of gdlib-config in a cross-compilation environment
> > +
> > +Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
> > +
> > +Index: b/Makefile.PL
> > +===================================================================
> > +--- a/Makefile.PL
> > ++++ b/Makefile.PL
> > +@@ -272,6 +272,7 @@
> > + exit 0;
> > +
> > + sub try_to_autoconfigure {
> > ++ return; # hack for BR
>
> But does that do the right thing?
>
>
with this patch, gdlib-config is never called, the configure step uses only
values from PERL_GD_CONF_OPTS.
François
> This is what our gdlib-config returns when E.G. building with png and
> jpeg support:
>
> ./staging/usr/bin/gdlib-config --all
> ~/source/buildroot/outputgd
> GD library 2.1.0
> includedir:
> /home/peko/source/buildroot/outputgd/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include
> cflags:
> -I/home/peko/source/buildroot/outputgd/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include
> ldflags: -pthread
> libs: -ljpeg -lz -lm
> -L/home/peko/source/buildroot/outputgd/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib
> -lpng16
> libdir:
> /home/peko/source/buildroot/outputgd/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib
> features: GD_JPEG GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON
>
> As far as I can see it doesn't end up linking with those libraries /
> using -pthread. Does it work for you? (it might, when using shared
> linking).
>
> --
> Bye, Peter Korsgaard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20141129/7248051e/attachment.html>
More information about the buildroot
mailing list