This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Zlib patch to optionally compile gzio.c
- From: Peter Korsgaard <jacmet at sunsite dot dk>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Sun, 16 Oct 2005 00:29:12 +0200
- Subject: Zlib patch to optionally compile gzio.c
Hi,
The following patch adds a CDL option (CYGFUN_COMPRESS_ZLIB_GZIO) to
optionally compile the stdio-like utility functions in gzio.c which
aren't normally compiled.
Index: packages/services/compress/zlib/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/services/compress/zlib/current/ChangeLog,v
retrieving revision 1.15
diff -u -5 -p -r1.15 ChangeLog
--- packages/services/compress/zlib/current/ChangeLog 29 Jul 2005 15:21:19 -0000 1.15
+++ packages/services/compress/zlib/current/ChangeLog 15 Oct 2005 22:19:01 -0000
@@ -1,5 +1,10 @@
+2005-10-16 Peter Korsgaard <jacmet@sunsite.dk>
+
+ * cdl/compress_zlib.cdl (CYGFUN_COMPRESS_ZLIB_GZIO): New option to
+ include zlib stdio-like utility functions.
+
2005-07-27 Peter Korsgaard <jacmet@sunsite.dk>
* src/ChangeLog:
* src/configure:
* src/deflate.c:
Index: packages/services/compress/zlib/current/cdl/compress_zlib.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/services/compress/zlib/current/cdl/compress_zlib.cdl,v
retrieving revision 1.7
diff -u -5 -p -r1.7 compress_zlib.cdl
--- packages/services/compress/zlib/current/cdl/compress_zlib.cdl 24 May 2004 19:33:34 -0000 1.7
+++ packages/services/compress/zlib/current/cdl/compress_zlib.cdl 15 Oct 2005 22:19:02 -0000
@@ -85,10 +85,21 @@ cdl_package CYGPKG_COMPRESS_ZLIB {
This pseudo-option will force the memalloc library to be
required iff the application does not provide it's own
infrastructure."
}
+ cdl_option CYGFUN_COMPRESS_ZLIB_GZIO {
+ display "Include stdio-like utility functions"
+ flavor bool
+ requires CYGPKG_LIBC_STDIO_OPEN
+ default_value { CYGPKG_LIBC_STDIO_OPEN ? 1 : 0 }
+ compile gzio.c
+ description "
+ This option enables the stdio-like zlib utility functions
+ (gzread/gzwrite and friends) provided in gzio.c."
+ }
+
# ====================================================================
cdl_component CYGPKG_COMPRESS_ZLIB_OPTIONS {
display "Zlib compress and decompress package build options"
--
Bye, Peter Korsgaard