Remove zlib namespacing (#1142)

We have an optimized version of zlib from the Chromium project.
We need it for a lot of our libc services. It would be nice to export
this to user applications if we can, since projects like llamafile are
already depending on it under the private namespace, to avoid
needing to link zlib twice.
This commit is contained in:
Gautham 2024-05-03 10:07:25 -05:00 committed by GitHub
parent deff138e7e
commit 5488f0b2ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 12 deletions

View file

@ -45,9 +45,9 @@ __static_yoink("musl_libc_notice");
// something as substantive as this library, then we shall assume the
// application is meaty enough to benefit from the performance of the
// chromium zlib library (costs ~40kb binary) versus just having puff
__static_yoink("_Cz_inflateInit2");
__static_yoink("_Cz_inflate");
__static_yoink("_Cz_inflateEnd");
__static_yoink("inflateInit2");
__static_yoink("inflate");
__static_yoink("inflateEnd");
#endif
static char *