diff options
| author | Ilya Leoshkevich <iii@linux.ibm.com> | 2022-04-12 15:16:20 +0200 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2022-04-27 10:37:43 +0200 |
| commit | 9be98893aaf69892811d617122e28ea2dd8e17ba (patch) | |
| tree | 9c73e2354905e01881b0091c63835f6e84342cfd /tools | |
| parent | bb89b77f78bfba795c7846f5ce68430bd332685f (diff) | |
| download | Project-Tick-9be98893aaf69892811d617122e28ea2dd8e17ba.tar.gz Project-Tick-9be98893aaf69892811d617122e28ea2dd8e17ba.zip | |
Use PREFIX() for some of the Z_INTERNAL symbols
https://github.com/powturbo/TurboBench links zlib and zlib-ng into the
same binary, causing non-static symbol conflicts. Fix by using PREFIX()
for flush_pending(), bi_reverse(), inflate_ensure_window() and all of
the IBM Z symbols.
Note: do not use an explicit zng_, since one of the long-term goals is
to be able to link two versions of zlib-ng into the same binary for
benchmarking [1].
[1] https://github.com/zlib-ng/zlib-ng/pull/1248#issuecomment-1096648932
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/maketrees.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/maketrees.c b/tools/maketrees.c index 282bddc2e5..97688c7aae 100644 --- a/tools/maketrees.c +++ b/tools/maketrees.c @@ -90,7 +90,7 @@ static void tr_static_init(void) { /* The static distance tree is trivial: */ for (n = 0; n < D_CODES; n++) { static_dtree[n].Len = 5; - static_dtree[n].Code = bi_reverse((unsigned)n, 5); + static_dtree[n].Code = PREFIX(bi_reverse)((unsigned)n, 5); } } |
