I’ve been googling around for a zlib sample of how to decode gzip/deflate http encoding by only using ZLib unit (Delphi 7). I’ve been using Indy 10 for that but then I ran into an article saying many 3rd party components implemented their own zlib helpers eventually causing multiple zlib objects linked into the output file. I have this huge project and looking for ways to reduce the size. I did a search on the binary and turned out I had at least 4 copies of zlib linked in.
Is there a way to avoid linking zlib obj files into the binary more than once? Can I make Indy not to use/import zlib at all?
No there is not. The linking .obj files is private to each unit. There is no way for you to detect from one unit that some other unit has linked a .obj file.