]> git.ipfire.org Git - thirdparty/zstd.git/commit
[trace] Remove default definitions of weak symbols 2589/head
authorNick Terrell <terrelln@fb.com>
Mon, 26 Apr 2021 23:05:39 +0000 (16:05 -0700)
committerNick Terrell <terrelln@fb.com>
Mon, 26 Apr 2021 23:05:39 +0000 (16:05 -0700)
commit6cee3c2c4f031125f487d2aa09c878e52a18fd4e
tree777bf670b8f0aed253444242ec0d3dcdfecf24b9
parent3e2fbfd05619a06566b0a80353045bfb4a7a70ef
[trace] Remove default definitions of weak symbols

Instead of providing a default no-op implementation, check the symbols
for `NULL` before accessing them. Providing a default implementation
doesn't reliably work with dynamic linking. Depending on link order the
default implementations may not be overridden. By skipping the default
implementation, all link order issues are resolved. If the symbols
aren't provided the weak function will be `NULL`.
build/meson/lib/meson.build
lib/common/zstd_trace.c [deleted file]
lib/common/zstd_trace.h
lib/compress/zstd_compress.c
lib/decompress/zstd_decompress.c