summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2022-04-12 15:16:20 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2022-04-27 10:37:43 +0200
commit9be98893aaf69892811d617122e28ea2dd8e17ba (patch)
tree9c73e2354905e01881b0091c63835f6e84342cfd /tools
parentbb89b77f78bfba795c7846f5ce68430bd332685f (diff)
downloadProject-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.c2
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);
}
}