summaryrefslogtreecommitdiffstats
path: root/package/gd/gd-no-zlib.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-12-02 17:19:40 -0800
committerPeter Korsgaard <jacmet@sunsite.dk>2012-12-02 17:19:40 -0800
commit8cdabd76950e227af088729c53c7f741a46bd9cc (patch)
tree86f11d84d46f9a5cc6be78b425b07bb58abb5d93 /package/gd/gd-no-zlib.patch
parent677d5068b955cf713b73d285e41ec8eedbda8e38 (diff)
parentc4fbc4202ea47829396bc446e84fd85153513974 (diff)
downloadbuildroot-novena-8cdabd76950e227af088729c53c7f741a46bd9cc.tar.gz
buildroot-novena-8cdabd76950e227af088729c53c7f741a46bd9cc.zip
Merge branch 'next'
Kickoff 2013.02 cycle
Diffstat (limited to 'package/gd/gd-no-zlib.patch')
-rw-r--r--package/gd/gd-no-zlib.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/package/gd/gd-no-zlib.patch b/package/gd/gd-no-zlib.patch
new file mode 100644
index 000000000..cb265b2a3
--- /dev/null
+++ b/package/gd/gd-no-zlib.patch
@@ -0,0 +1,51 @@
+[PATCH] gd_gd2: provide dummy implementations for all public symbols when !zlib
+
+gd_gd2.c only provides dummy implementations for some of it's public symbols
+when zlib isn't found, causing build failures in several of the tools.
+
+Fix it by providing dummy implementations for all of them.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ gd_gd2.c | 30 ++++++++++++++++++++++++++++++
+ 1 file changed, 30 insertions(+)
+
+Index: gd-2.0.35/gd_gd2.c
+===================================================================
+--- gd-2.0.35.orig/gd_gd2.c
++++ gd-2.0.35/gd_gd2.c
+@@ -1068,4 +1068,34 @@
+ fprintf (stderr, "GD2 support is not available - no libz\n");
+ return NULL;
+ }
++
++BGD_DECLARE(gdImagePtr) gdImageCreateFromGd2Part (FILE * inFile, int srcx, int srcy, int w, int h)
++{
++ fprintf (stderr, "GD2 support is not available - no libz\n");
++ return NULL;
++}
++
++BGD_DECLARE(gdImagePtr) gdImageCreateFromGd2PartPtr (int size, void *data, int srcx, int srcy, int w,
++ int h)
++{
++ fprintf (stderr, "GD2 support is not available - no libz\n");
++ return NULL;
++}
++
++BGD_DECLARE(gdImagePtr) gdImageCreateFromGd2PartCtx (gdIOCtx * in, int srcx, int srcy, int w, int h)
++{
++ fprintf (stderr, "GD2 support is not available - no libz\n");
++ return NULL;
++}
++
++BGD_DECLARE(void) gdImageGd2 (gdImagePtr im, FILE * outFile, int cs, int fmt)
++{
++ fprintf (stderr, "GD2 support is not available - no libz\n");
++}
++
++BGD_DECLARE(void *) gdImageGd2Ptr (gdImagePtr im, int cs, int fmt, int *size)
++{
++ fprintf (stderr, "GD2 support is not available - no libz\n");
++ return NULL;
++}
+ #endif /* HAVE_LIBZ */