[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] use of zlib
From: |
Jacob (=Jouk) Jansen |
Subject: |
[Devel] use of zlib |
Date: |
Mon, 4 Nov 2002 14:17:59 +0100 (MET) |
Hi All,
in src/gzip/ftgzip.c it is stated :
# if 1 /* we choose to include directly the zlib sources in this component */
/* this is done to avoid ugly library dependencies */
This statement is rather taste/system dependend. The solution chosen here
is quite ugly for OpenVMS: when you try to use the freetype2 library in one
program together with code where the original zlib is required one get a lot
of warnings about externals which are multiple defined in the libraries.
Ofcourse one can solve it by "prefix" all the zlib routines in ft's zlib.
However : -the list in zconf.h is not complete and has to maintained every
time zlib is upgraded.
-the executables become larger since much code is included twice,
without any gain in performance.
I personally do not like to have the same sources in different locations. So
let the people of ZLIB maintain their part and have it as dependency.
For the moment I propose to have a preprocessor directive which indicates
if the original- or the FT-zlib should be used. In order to have the compiler
including the right *.h files, all the "zlib-originals" should be in their
own directory in which ftgzip.c is NOT located.
Jouk
Bush : All votes are equal but some votes are more equal than others.
>------------------------------------------------------------------------------<
Jouk Jansen
address@hidden
Technische Universiteit Delft tttttttttt uu uu ddddddd
Nationaal centrum voor HREM tttttttttt uu uu dd dd
Rotterdamseweg 137 tt uu uu dd dd
2628 AL Delft tt uu uu dd dd
Nederland tt uu uu dd dd
tel. 31-15-2782272 tt uuuuuuu ddddddd
>------------------------------------------------------------------------------<
- [Devel] use of zlib,
Jacob (=Jouk) Jansen <=